ing
This commit is contained in:
parent
108d2317b7
commit
b8ad668263
@ -6,10 +6,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Service interface {
|
type Service interface {
|
||||||
Init() error
|
InitService() error
|
||||||
Start() error
|
StartService() error
|
||||||
Stop() error
|
StopService() error
|
||||||
Destroy() error
|
DestroyService() error
|
||||||
}
|
}
|
||||||
|
|
||||||
type ServiceMethodType int
|
type ServiceMethodType int
|
||||||
@ -23,10 +23,10 @@ const (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
serviceMethodTypeID = map[ServiceMethodType]string{
|
serviceMethodTypeID = map[ServiceMethodType]string{
|
||||||
ServiceMethodInit: "Init",
|
ServiceMethodInit: "InitService",
|
||||||
ServiceMethodStart: "Start",
|
ServiceMethodStart: "StartService",
|
||||||
ServiceMethodStop: "Stop",
|
ServiceMethodStop: "StopService",
|
||||||
ServiceMethodDestroy: "Destroy",
|
ServiceMethodDestroy: "DestroyService",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user