daemon

package
v0.0.0-...-ade0808 Latest Latest
Warning

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

Go to latest
Published: May 21, 2017 License: MIT Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

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