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 { 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",
} }
) )