UNPKG

1.4 kBJavaScriptView Raw
1'use strict';
2
3/**
4 * @namespace Egg
5 */
6
7/**
8 * Start egg application with cluster mode
9 * @since 1.0.0
10 */
11exports.startCluster = require('egg-cluster').startCluster;
12
13/**
14 * Start egg application with single process mode
15 * @since 1.0.0
16 */
17exports.start = require('./lib/start');
18
19/**
20 * @member {Application} Egg#Application
21 * @since 1.0.0
22 */
23exports.Application = require('./lib/application');
24
25/**
26 * @member {Agent} Egg#Agent
27 * @since 1.0.0
28 */
29exports.Agent = require('./lib/agent');
30
31/**
32 * @member {AppWorkerLoader} Egg#AppWorkerLoader
33 * @since 1.0.0
34 */
35exports.AppWorkerLoader = require('./lib/loader').AppWorkerLoader;
36
37/**
38 * @member {AgentWorkerLoader} Egg#AgentWorkerLoader
39 * @since 1.0.0
40 */
41exports.AgentWorkerLoader = require('./lib/loader').AgentWorkerLoader;
42
43/**
44 * @member {Controller} Egg#Controller
45 * @since 1.1.0
46 */
47exports.Controller = require('./lib/core/base_context_class');
48
49/**
50 * @member {Service} Egg#Service
51 * @since 1.1.0
52 */
53exports.Service = require('./lib/core/base_context_class');
54
55/**
56 * @member {Subscription} Egg#Subscription
57 * @since 1.10.0
58 */
59exports.Subscription = require('./lib/core/base_context_class');
60
61/**
62 * @member {BaseContextClass} Egg#BaseContextClass
63 * @since 1.2.0
64 */
65exports.BaseContextClass = require('./lib/core/base_context_class');
66
67/**
68 * @member {Boot} Egg#Boot
69 */
70exports.Boot = require('./lib/core/base_hook_class');