** * bean interface means singleton in application */
| 4 | * bean interface means singleton in application |
| 5 | */ |
| 6 | type Bean interface { |
| 7 | //init the bean when constructing |
| 8 | Init() |
| 9 | //cleanup the bean when system's cleanup |
| 10 | Cleanup() |
| 11 | //when everything(including db's connection) loaded, this method will be invoked. |
| 12 | Bootstrap() |
| 13 | //shortcut for panic check. |
| 14 | PanicError(err error) |
| 15 | } |
no outgoing calls
no test coverage detected