Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CtrlC ¶
type CtrlC struct {
// contains filtered or unexported fields
}
CtrlC 捕获ctrl-c的控制器
func (*CtrlC) SetMulServices ¶
func (c *CtrlC) SetMulServices(m MulServices) *CtrlC
SetMulServices 设置注册多服务的方法
type LierCmd ¶
type LierCmd struct {
AppName string
CmdName string
Version string
BuildTime string
RunTime string
Desc string
Author string
// contains filtered or unexported fields
}
func (*LierCmd) ServicesRegistration ¶
ServicesRegistration 服务注册
func (*LierCmd) SetService ¶
type MulServices ¶
type MulServices interface {
ServicesRegistration() []Service
}
MulServices 多服务程序的注册
type MulServicesProgram ¶
type MulServicesProgram interface {
Starter
Stopper
MulServices
}
MulServicesProgram 支持多服务启动及关闭的程序接口
Click to show internal directories.
Click to hide internal directories.