-
-
Notifications
You must be signed in to change notification settings - Fork 587
/
index.js
54 lines (42 loc) · 1.43 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* moleculer
* Copyright (c) 2020 MoleculerJS (https://github.com/moleculerjs/moleculer)
* MIT Licensed
*/
"use strict";
const {
CIRCUIT_CLOSE,
CIRCUIT_HALF_OPEN,
CIRCUIT_HALF_OPEN_WAIT,
CIRCUIT_OPEN
} = require("./src/constants");
module.exports = {
ServiceBroker: require("./src/service-broker"),
Loggers: require("./src/loggers"),
Service: require("./src/service"),
Context: require("./src/context"),
Cachers: require("./src/cachers"),
Transporters: require("./src/transporters"),
Serializers: require("./src/serializers"),
Strategies: require("./src/strategies"),
Validators: require("./src/validators"),
Validator: require("./src/validators/fastest"), // deprecated
TracerExporters: require("./src/tracing/exporters"),
MetricTypes: require("./src/metrics/types"),
MetricReporters: require("./src/metrics/reporters"),
METRIC: require("./src/metrics/constants"),
Transit: require("./src/transit"),
Registry: require("./src/registry"),
Discoverers: require("./src/registry/discoverers"),
Middlewares: require("./src/middlewares"),
Errors: require("./src/errors"),
Runner: require("./src/runner"),
Utils: require("./src/utils"),
CIRCUIT_CLOSE,
CIRCUIT_HALF_OPEN,
CIRCUIT_HALF_OPEN_WAIT,
CIRCUIT_OPEN,
MOLECULER_VERSION: require("./src/service-broker").MOLECULER_VERSION,
PROTOCOL_VERSION: require("./src/service-broker").PROTOCOL_VERSION,
INTERNAL_MIDDLEWARES: require("./src/service-broker").INTERNAL_MIDDLEWARES
};