Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LierCmd ¶
type LierCmd struct {
// contains filtered or unexported fields
}
func NewLierCmd ¶ added in v1.0.2
func NewLierCmd(options ...LierCmdOption) *LierCmd
NewLierCmd 初始化生成LierCmd
func (*LierCmd) ServicesRegistration ¶
ServicesRegistration 服务注册
type LierCmdOption ¶ added in v1.1.5
type LierCmdOption func(*LierCmd)
func AddProperty ¶ added in v1.1.5
func AddProperty(key, value string) LierCmdOption
AddProperty 添加属性
func WithProperty ¶ added in v1.1.5
func WithProperty(property map[string]string) LierCmdOption
WithProperty 设置属性
func WithServices ¶ added in v1.1.0
func WithServices(services ...Service) LierCmdOption
WithServices 设置服务
type MulServices ¶
type MulServices interface {
ServicesRegistration() []Service
}
MulServices 多服务程序的注册
type MulServicesProgram ¶
type MulServicesProgram interface {
Starter
Stopper
MulServices
Logger
}
MulServicesProgram 支持多服务启动及关闭的程序接口
Click to show internal directories.
Click to hide internal directories.