Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminConfig ¶
func NewAdminConfig ¶
type AdminServer ¶
type AdminServer struct {
// contains filtered or unexported fields
}
func StartAdminServer ¶
func StartAdminServer(cfg AdminConfig, state AdminState) (*AdminServer, error)
type AdminState ¶
type LoggerConfig ¶
type Options ¶
type Options struct {
ServiceName string
LoadConfig func() error
LoggerConfig func() LoggerConfig
AdminConfig func() AdminConfig
InitDeps func() error
RegisterHandlers func() error
StartRuntime func() error
OnProc func() bool
OnTick func(lastMs, nowMs int64)
OnExit func()
}
type ServiceApp ¶
type ServiceApp struct {
// contains filtered or unexported fields
}
func NewServiceApp ¶
func NewServiceApp(opts Options) *ServiceApp
func (*ServiceApp) OnExit ¶
func (a *ServiceApp) OnExit()
func (*ServiceApp) OnInit ¶
func (a *ServiceApp) OnInit() error
func (*ServiceApp) OnProc ¶
func (a *ServiceApp) OnProc() bool
func (*ServiceApp) OnReload ¶
func (a *ServiceApp) OnReload() error
func (*ServiceApp) OnTick ¶
func (a *ServiceApp) OnTick(lastMs, nowMs int64)
Click to show internal directories.
Click to hide internal directories.