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 (*LierCmd) AddService ¶ added in v1.2.0
AddService 添加一个服务
func (*LierCmd) ServicesRegistration ¶
ServicesRegistration 服务注册
type LierCmdOption ¶ added in v1.1.5
type LierCmdOption func(*LierCmd)
func WithProperty ¶ added in v1.1.5
func WithProperty(property map[string]string) LierCmdOption
WithProperty 设置属性
func WithServiceName ¶ added in v1.2.0
func WithServiceName(serviceName string) LierCmdOption
WithServiceName 设置服务名称
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 { Service MulServices }
MulServicesProgram 支持多服务启动及关闭的程序接口
func NewLierCmd ¶ added in v1.0.2
func NewLierCmd(options ...LierCmdOption) MulServicesProgram
NewLierCmd 初始化生成LierCmd
Click to show internal directories.
Click to hide internal directories.