Documentation ¶
Index ¶
- Variables
- func DumpCfg(path string, cfg interface{}) error
- func GetCfgPath(item1, item2 string) string
- func GetLocalCfg(name string) string
- func GetSrvPath(name string) string
- func HandleExitCoder(err error)
- func LoadCfg(path string, cfg interface{})
- func NewCli(appName string, cfgArgs ...interface{}) *cli.App
- type ExitCoder
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UnSupportWin = errors.New("un support on windows")
)
Functions ¶
func GetCfgPath ¶
func GetLocalCfg ¶
func GetSrvPath ¶
func HandleExitCoder ¶
func HandleExitCoder(err error)
Types ¶
type Service ¶
type Service interface { // 设置最多重试次数 SetExecMax(uint) // 设置服务停止触发函数 SetStopFunc(func()) Run() }
Click to show internal directories.
Click to hide internal directories.