forked from moleculerjs/moleculer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
42 lines (32 loc) · 962 Bytes
/
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
/*
* moleculer
* Copyright (c) 2018 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"),
Logger: require("./src/logger"),
Service: require("./src/service"),
Context: require("./src/context"),
Cachers: require("./src/cachers"),
Transporters: require("./src/transporters"),
Serializers: require("./src/serializers"),
Strategies: require("./src/strategies"),
Validator: require("./src/validator"),
Middlewares: require("./src/middlewares"),
Errors: require("./src/errors"),
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
};