state

package
v0.0.0-...-5168a6d Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State int

State represets the state of a unit

const (
	// Active means the unit is running
	Active State = iota
	// Dead means the unit stopped
	Dead
	// Starting means the unit is becoming active
	Starting
	// Destroy means that the holder of the unit should delete the unit
	Destroy
)

func ForInt

func ForInt(i int) State

ForInt gives back the sate for the index

func ForString

func ForString(name string) State

ForString sends back the state for the given string

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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