cmd

package
v0.0.0-...-f73d2c1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdServer = cli.Command{
	Name:        "server",
	Usage:       "Start a murmur server",
	Description: "Starts a murmur server instance",
	Action:      runServer,
	Flags: []cli.Flag{
		cli.BoolFlag{
			Name:  "verbose, v",
			Usage: "Verbose output",
		},
		cli.StringFlag{
			Name:   "host",
			Value:  ":6543",
			Usage:  "Endpoint for listening",
			EnvVar: "MURMUR_HOST",
		},
		cli.StringFlag{
			Name:   "dbpath, p",
			Value:  "/var/murmur/",
			Usage:  "Database location",
			EnvVar: "MURMUR_DBPATH",
		},
		cli.IntFlag{
			Name:   "interval, i",
			Value:  5000,
			Usage:  "Recording interval (in milliseconds)",
			EnvVar: "MURMUR_INTERVAL",
		},
		cli.Float64Flag{
			Name:   "deadband, d",
			Value:  0.1,
			Usage:  "value delta threshold ",
			EnvVar: "MURMUR_DEADBAND",
		},
	},
}

Functions

This section is empty.

Types

type Event

type Event struct {
	Source    string
	Key       string
	Timestamp int64
	Value     float64
}

Jump to

Keyboard shortcuts

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