oldstatus

package
v0.0.0-...-58bc628 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	Port         int    `short:"p" long:"port" description:"Port on which to listen" default:"7887"`
	StatusFile   string `` /* 130-byte string literal not displayed */
	StatusSocket string `long:"status-socket" description:"Path to status socket" default:"/var/run/platconf-status.sock"`
}

Opts contains command line parameters for the 'oldstatus' command

func (*Opts) Execute

func (o *Opts) Execute(args []string) error

Execute is the function ran when the 'oldstatus' command is used

type StatusData

type StatusData struct {
	Status       string   `json:"status"`
	Progress     *float32 `json:"progress"`
	What         *string  `json:"what"`
	sync.RWMutex `json:"-"`
}

StatusData is the data structure sent to the status page

Jump to

Keyboard shortcuts

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