Documentation ¶ Index ¶ type State func ForInt(i int) State func ForString(name string) State func (s State) String() string 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 Source Files ¶ View all Source files state.go Click to show internal directories. Click to hide internal directories.