This commit is contained in:
crusader 2018-04-17 19:42:50 +09:00
parent 108d2317b7
commit b8ad668263

View File

@ -6,10 +6,10 @@ import (
)
type Service interface {
Init() error
Start() error
Stop() error
Destroy() error
InitService() error
StartService() error
StopService() error
DestroyService() error
}
type ServiceMethodType int
@ -23,10 +23,10 @@ const (
var (
serviceMethodTypeID = map[ServiceMethodType]string{
ServiceMethodInit: "Init",
ServiceMethodStart: "Start",
ServiceMethodStop: "Stop",
ServiceMethodDestroy: "Destroy",
ServiceMethodInit: "InitService",
ServiceMethodStart: "StartService",
ServiceMethodStop: "StopService",
ServiceMethodDestroy: "DestroyService",
}
)