Documentation
¶
Index ¶
- Constants
- type CommandLine
- func (this *CommandLine) AnalyzeControl(index int, params ...string) (mss.IControler, error)
- func (this *CommandLine) AnalyzeService(index int, params ...string) (mss.IServicer, error)
- func (this *CommandLine) CallCommand(command string, from mss.IServicer, done mss.CalyHandFunc) (string, error)
- func (this *CommandLine) CastCommand(command string)
- func (this *CommandLine) HandleGore() *mss.Gore
- func (this *CommandLine) HandleInit(own mss.ISeriOwner)
- func (this *CommandLine) HandleLaun()
- func (this *CommandLine) HandleStat() string
- func (this *CommandLine) OnCmdEcho(params ...string) (string, error)
- func (this *CommandLine) OnCmdExit(params ...string) (string, error)
- func (this *CommandLine) OnCmdHelp(params ...string) (string, error)
- func (this *CommandLine) OnCmdLogLevel(params ...string) (string, error)
- func (this *CommandLine) OnCmdMCList(params ...string) (string, error)
- func (this *CommandLine) OnCmdMCStatus(params ...string) (string, error)
- func (this *CommandLine) OnCmdMCSusp(params ...string) (string, error)
- func (this *CommandLine) OnCmdMCWake(params ...string) (string, error)
- func (this *CommandLine) OnCmdMSCountEvent(params ...string) (string, error)
- func (this *CommandLine) OnCmdMSCountEventFor(params ...string) (string, error)
- func (this *CommandLine) OnCmdMSEventCount(params ...string) (string, error)
- func (this *CommandLine) OnCmdMSEventCountFor(params ...string) (string, error)
- func (this *CommandLine) OnCmdMSEventList(params ...string) (string, error)
- func (this *CommandLine) OnCmdMSList(params ...string) (string, error)
- func (this *CommandLine) OnCmdMSStatus(params ...string) (string, error)
- func (this *CommandLine) OnCmdMTContent(params ...string) (string, error)
- func (this *CommandLine) OnCmdMTList(params ...string) (string, error)
- func (this *CommandLine) OnCmdMTReload(params ...string) (string, error)
- func (this *CommandLine) OnCmdStack(params ...string) (string, error)
- func (this *CommandLine) OnCmdStartPprof(params ...string) (string, error)
- func (this *CommandLine) OnCmdStopPprof(params ...string) (string, error)
- func (this *CommandLine) OnCmdTimeLived(params ...string) (string, error)
- func (this *CommandLine) OnCmdTimeStart(params ...string) (string, error)
- func (this *CommandLine) OnCmdVersion(params ...string) (string, error)
- type HandleFunc
- type ICommandEer
- type ICommandLiner
Constants ¶
const DEF_CMD_PREFIX = "oncmd" // 前缀检测时不区分大小写
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandLine ¶
type CommandLine struct { mss.ServiceHandle ICommandLiner // contains filtered or unexported fields }
func (*CommandLine) AnalyzeControl ¶
func (this *CommandLine) AnalyzeControl(index int, params ...string) (mss.IControler, error)
func (*CommandLine) AnalyzeService ¶
------------------------------------------------------------------------------ ==================================Internal==================================== ------------------------------------------------------------------------------
func (*CommandLine) CallCommand ¶
func (this *CommandLine) CallCommand(command string, from mss.IServicer, done mss.CalyHandFunc) (string, error)
func (*CommandLine) CastCommand ¶
func (this *CommandLine) CastCommand(command string)
----------------------------------------------------------------------------- ==================================External=================================== -----------------------------------------------------------------------------
func (*CommandLine) HandleGore ¶
func (this *CommandLine) HandleGore() *mss.Gore
func (*CommandLine) HandleInit ¶
func (this *CommandLine) HandleInit(own mss.ISeriOwner)
func (*CommandLine) HandleLaun ¶
func (this *CommandLine) HandleLaun()
func (*CommandLine) HandleStat ¶
func (this *CommandLine) HandleStat() string
func (*CommandLine) OnCmdEcho ¶
func (this *CommandLine) OnCmdEcho(params ...string) (string, error)
func (*CommandLine) OnCmdExit ¶
func (this *CommandLine) OnCmdExit(params ...string) (string, error)
----------------------------------------------------------------------------- ==================================Logical==================================== -----------------------------------------------------------------------------
func (*CommandLine) OnCmdHelp ¶
func (this *CommandLine) OnCmdHelp(params ...string) (string, error)
func (*CommandLine) OnCmdLogLevel ¶
func (this *CommandLine) OnCmdLogLevel(params ...string) (string, error)
func (*CommandLine) OnCmdMCList ¶
func (this *CommandLine) OnCmdMCList(params ...string) (string, error)
func (*CommandLine) OnCmdMCStatus ¶
func (this *CommandLine) OnCmdMCStatus(params ...string) (string, error)
func (*CommandLine) OnCmdMCSusp ¶
func (this *CommandLine) OnCmdMCSusp(params ...string) (string, error)
func (*CommandLine) OnCmdMCWake ¶
func (this *CommandLine) OnCmdMCWake(params ...string) (string, error)
func (*CommandLine) OnCmdMSCountEvent ¶
func (this *CommandLine) OnCmdMSCountEvent(params ...string) (string, error)
func (*CommandLine) OnCmdMSCountEventFor ¶
func (this *CommandLine) OnCmdMSCountEventFor(params ...string) (string, error)
func (*CommandLine) OnCmdMSEventCount ¶
func (this *CommandLine) OnCmdMSEventCount(params ...string) (string, error)
func (*CommandLine) OnCmdMSEventCountFor ¶
func (this *CommandLine) OnCmdMSEventCountFor(params ...string) (string, error)
func (*CommandLine) OnCmdMSEventList ¶
func (this *CommandLine) OnCmdMSEventList(params ...string) (string, error)
func (*CommandLine) OnCmdMSList ¶
func (this *CommandLine) OnCmdMSList(params ...string) (string, error)
func (*CommandLine) OnCmdMSStatus ¶
func (this *CommandLine) OnCmdMSStatus(params ...string) (string, error)
func (*CommandLine) OnCmdMTContent ¶
func (this *CommandLine) OnCmdMTContent(params ...string) (string, error)
func (*CommandLine) OnCmdMTList ¶
func (this *CommandLine) OnCmdMTList(params ...string) (string, error)
func (*CommandLine) OnCmdMTReload ¶
func (this *CommandLine) OnCmdMTReload(params ...string) (string, error)
func (*CommandLine) OnCmdStack ¶
func (this *CommandLine) OnCmdStack(params ...string) (string, error)
func (*CommandLine) OnCmdStartPprof ¶
func (this *CommandLine) OnCmdStartPprof(params ...string) (string, error)
func (*CommandLine) OnCmdStopPprof ¶
func (this *CommandLine) OnCmdStopPprof(params ...string) (string, error)
func (*CommandLine) OnCmdTimeLived ¶
func (this *CommandLine) OnCmdTimeLived(params ...string) (string, error)
func (*CommandLine) OnCmdTimeStart ¶
func (this *CommandLine) OnCmdTimeStart(params ...string) (string, error)
func (*CommandLine) OnCmdVersion ¶
func (this *CommandLine) OnCmdVersion(params ...string) (string, error)
type ICommandEer ¶
type ICommandLiner ¶
type ICommandLiner interface { // 解析参数变量 ParseParams(params []string, outvars ...interface{}) error // 获得命令名称[通过子串查找] CommandFind(subStr string) string // 获得帮助信息 CommandTips() string // 获得注册的命令数量 CommandCount() int // 注册消息的回调方法 RegistHandle(handler HandleFunc, tips string) }
CommandLine Public interface