tank/code/core/bean.go
2019-04-28 01:29:13 +08:00

16 lines
298 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package core
/**
* 系统中的Bean接口即系统中单例模式
*/
type Bean interface {
//初始化方法
Init()
//系统清理方法
Cleanup()
//所有配置都加载完成后调用的方法,包括数据库加载完毕
Bootstrap()
//快速的Panic方法
PanicError(err error)
}