Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InitCliCmd ¶
func InitCliCmd(kPtr ICommand)
func InitRQuitCmd ¶
func InitRQuitCmd(keeper ICommand)
func InitReloadCmd ¶
func InitReloadCmd(keeper ICommand)
func InitStartCmd ¶
func InitStartCmd(keeper ICommand)
func InitStopCmd ¶
func InitStopCmd(keeper ICommand)
func InitVersionCmd ¶
func InitVersionCmd(keeper ICommand)
Types ¶
type ICommand ¶
type ICommand interface { SetRootCommand(c *cobra.Command) AddCommand(cmds ...*cobra.Command) Execute() error IKStartCmd IkStopCmd IkVersionCmd }
Keeper实现本接口的方法在ki_cli.go中
type IKStartCmd ¶
type IKStartCmd interface { SetAppsToOperate(names []string) SetCurrentExecutor(execName string) Config() *gcfg.Config InitLogSetting(config *gcfg.Config) error ParseConfig(config string) ParseEnv(env string) ParseDebug(debug bool) ParseDaemon(daemon bool) ParsePidFilePath(pidPath string) CheckKeeperForStart() RunKeeper() }
type IkVersionCmd ¶
type IkVersionCmd interface {
Version()
}
Click to show internal directories.
Click to hide internal directories.