UNPKG

@midwayjs/web

Version:

Midway Web Framework for Egg.js

28 lines (21 loc) 493 B
'use strict'; const { debuglog } = require('util'); const debug = debuglog('midway:debug'); class AgentBootHook { constructor(app) { this.app = app; } configDidLoad() { debug('[egg:lifecycle]: agent configDidLoad'); } async didLoad() { debug('[egg:lifecycle]: agent didLoad'); } async willReady() { debug('[egg:lifecycle]: agent willReady'); } async beforeClose() { debug('[egg:lifecycle]: agent beforeClose'); } } module.exports = AgentBootHook;