Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdDebug = cli.Command{ Name: "debug", Usage: "调试模式", Description: "调试模式", Action: runDebug, Flags: []cli.Flag{ cli.StringFlag{ Name: "f", Value: "/etc/odin-agent.conf", Usage: "配置文件路径,默认位置:/etc/monitor-agent.conf", }, cli.StringFlag{ Name: "cpuprofile", Value: "/tmp/cpu.pprof", Usage: "CPU pprof file", }, cli.StringFlag{ Name: "memprofile", Value: "/tmp/mem.pprof", Usage: "Memory pprof file", }, }, }
View Source
var CmdStart = cli.Command{ Name: "start", Usage: "启动客户端", Description: "启动Agent客户端", Action: runStart, Flags: []cli.Flag{ cli.StringFlag{ Name: "f", Value: "/etc/agent.conf", Usage: "配置文件路径,默认位置:/etc/agent.conf", }, }, }
View Source
var CmdStop = cli.Command{ Name: "stop", Usage: "关闭客户端", Description: "关闭Agent客户端", Action: runStop, Flags: []cli.Flag{ cli.StringFlag{ Name: "m", Value: "normal", Usage: "stop agent mode", }, }, }
View Source
var CmdVersion = cli.Command{
Name: "version",
Usage: "show version",
Description: "show version",
Action: runVersion,
}
Functions ¶
func WindowsStart ¶ added in v0.2.0
func WindowsStart()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.