Documentation ¶
Index ¶
- func GetApiInitializers() []base.Initializer
- func Iris() *iris.Application
- func Props() kvs.ConfigSource
- func RedisClient() *redis.Client
- func Register(fn func())
- func RegisterApi(ai base.Initializer)
- func RpcRegister(ri interface{})
- func RpcServer() *rpc.Server
- func Transtate() ut.Translator
- func Validate() *validator.Validate
- func ValidateStruct(s interface{}) (err error)
- func XormEngine() *xorm.Engine
- type GoRpcStarter
- type HookStarter
- type IrisServerStarter
- type PropsStarter
- type RedisStarter
- type ValidatorStarter
- type WebApiStarter
- type XormEngineStarter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Iris ¶
func Iris() *iris.Application
func Props ¶
func Props() kvs.ConfigSource
func RedisClient ¶
func RpcRegister ¶
func RpcRegister(ri interface{})
func ValidateStruct ¶
func ValidateStruct(s interface{}) (err error)
func XormEngine ¶
Types ¶
type GoRpcStarter ¶
type GoRpcStarter struct { base.BaseStarter // contains filtered or unexported fields }
func (*GoRpcStarter) Init ¶
func (g *GoRpcStarter) Init(ctx base.StarterContext)
func (*GoRpcStarter) Start ¶
func (g *GoRpcStarter) Start(ctx base.StarterContext)
type HookStarter ¶
type HookStarter struct {
base.BaseStarter
}
func (*HookStarter) Init ¶
func (s *HookStarter) Init(ctx base.StarterContext)
func (*HookStarter) Start ¶
func (s *HookStarter) Start(ctx base.StarterContext)
type IrisServerStarter ¶
type IrisServerStarter struct {
base.BaseStarter
}
func (*IrisServerStarter) Init ¶
func (i *IrisServerStarter) Init(ctx base.StarterContext)
func (*IrisServerStarter) Start ¶
func (i *IrisServerStarter) Start(ctx base.StarterContext)
func (*IrisServerStarter) StartBlocking ¶
func (i *IrisServerStarter) StartBlocking() bool
type PropsStarter ¶
type PropsStarter struct {
base.BaseStarter
}
func (*PropsStarter) Init ¶
func (p *PropsStarter) Init(ctx base.StarterContext)
func (*PropsStarter) SetUp ¶
func (p *PropsStarter) SetUp(ctx base.StarterContext)
func (*PropsStarter) Start ¶
func (p *PropsStarter) Start(ctx base.StarterContext)
type RedisStarter ¶
type RedisStarter struct {
base.BaseStarter
}
func (*RedisStarter) Init ¶
func (r *RedisStarter) Init(ctx base.StarterContext)
func (*RedisStarter) Setup ¶
func (r *RedisStarter) Setup(ctx base.StarterContext)
func (*RedisStarter) Stop ¶
func (r *RedisStarter) Stop(ctx base.StarterContext)
type ValidatorStarter ¶
type ValidatorStarter struct {
base.BaseStarter
}
func (*ValidatorStarter) Init ¶
func (v *ValidatorStarter) Init(ctx base.StarterContext)
type WebApiStarter ¶
type WebApiStarter struct {
base.BaseStarter
}
func (*WebApiStarter) Setup ¶
func (w *WebApiStarter) Setup(ctx base.StarterContext)
type XormEngineStarter ¶
type XormEngineStarter struct {
base.BaseStarter
}
func (*XormEngineStarter) Init ¶
func (x *XormEngineStarter) Init(ctx base.StarterContext)
func (*XormEngineStarter) Setup ¶
func (x *XormEngineStarter) Setup(ctx base.StarterContext)
Click to show internal directories.
Click to hide internal directories.