Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = cli.Commands{ { Name: "daemon", Usage: "run gopatrol checking daemon", Action: runDaemon, Flags: []cli.Flag{ cli.StringFlag{ Name: "log", Value: "gopatrol-daemon.log", Usage: "", }, }, }, { Name: "api", Usage: "run gopatrol api server", Action: runApiServer, Flags: []cli.Flag{ cli.StringFlag{ Name: "log", Value: "gopatrol-daemon.log", Usage: "", }, cli.StringFlag{ Name: "proto", Value: "unix", Usage: "protocol to run the api server", }, cli.StringFlag{ Name: "address", Value: "/tmp/gopatrol.sock", Usage: "address of the api server", }, }, }, }
Commands is a list of commands that will be used in main function of cli app
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.