Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupApi ¶
func SetupApi(ai Initializer)
Types ¶
type InitializeRegister ¶
type InitializeRegister struct { Initializers []Initializer SetupApis []Initializer }
初始化注册器
func (*InitializeRegister) Register ¶
func (i *InitializeRegister) Register(ai Initializer)
注册一个初始化对象
func (*InitializeRegister) Setup ¶
func (i *InitializeRegister) Setup(ai Initializer)
type Initializer ¶
type Initializer interface { //用于对象实例化后的初始化操作 Init() Setup() }
func GetSetupApis ¶
func GetSetupApis() []Initializer
type WebApiStarter ¶
type WebApiStarter struct {
infra.BaseStarter
}
func (*WebApiStarter) Setup ¶
func (w *WebApiStarter) Setup(ctx infra.StarterContext)
Click to show internal directories.
Click to hide internal directories.