command

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2017 License: MIT Imports: 13 Imported by: 0

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 Notify

func Notify()
func PrintLogo()

func WindowsStart added in v0.2.0

func WindowsStart()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL