Open mikemimik opened 8 years ago
├── brain/ ├── configs/ │ ├── index.js │ └── collins-{service-ger}.js ├── libs/ │ ├── Collins.js │ ├── CollinsErrors.js │ └── Triggers.js (I don't think this is needed) ├── utils/ │ ├── Loader.js │ └── Runtime.js └── Service (index.js)
class Collins extends Emitter.EventEmitter2 { constructor(config) { super({ wildcard: true, delimiter: ':' }); this.services = []; } use(service_gear) { this.services.push(service_gear); } start() { } }
Configures, instantiates, initializes, and connects all the {service-gears} and {service-cogs}
static init(next) { let context = this; next(null); }
static initConfig(next) { let context = this; next(null); }
static initServices(next) { let context = this; next(null); }
static connectServices(next) { let context = this; next(null); }
static initServiceCogs(next) { let context = this; next(null); }
static initActions(next) { let context = this; next(null); }
static validateConfig(config) { let context = this; return config; }
What do we do with all the service-gear configurations? Where to those go, and where do they get configured?
Collins
Collins
CollinsError
Loader
Runtime
Working Data Structure