-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
64 lines (46 loc) · 925 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
'use strict';
/**
* Child helper
* @type {Child}
*/
exports.Child = require(__dirname + '/helpers/Child')
/**
* Alias to child shortcut
* @type {function}
*/
exports.child = exports.Child.child
/**
* Alias to run a child once and return
* @type {function}
*/
exports.childOnce = exports.Child.childOnce
/**
* Alias to parent shortcut
* @type {function}
*/
exports.parent = exports.Child.parent
/**
* Alias to fork a runOnce child
* @type {function}
*/
exports.fork = exports.Child.fork
/**
* Cluster Helper
* @type {cluster}
*/
exports.cluster = require(__dirname + '/helpers/Cluster')
/**
* Export cluster class too
* @type {Cluster}
*/
exports.Cluster = exports.cluster.Cluster
/**
* Shortcut for worker setup
* @type {function}
*/
exports.worker = exports.cluster.setup
/**
* Lifecycle helper
* @type {Object|*}
*/
exports.Lifecycle = require(__dirname + '/helpers/Lifecycle')