You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
339 B
15 lines
339 B
package core
|
|
|
|
/**
|
|
* bean interface means singleton in application
|
|
*/
|
|
type Bean interface {
|
|
//init the bean when constructing
|
|
Init()
|
|
//cleanup the bean when system's cleanup
|
|
Cleanup()
|
|
//when everything(including db's connection) loaded, this method will be invoked.
|
|
Bootstrap()
|
|
//shortcut for panic check.
|
|
PanicError(err error)
|
|
}
|
|
|