mode

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: ISC Imports: 4 Imported by: 3

Documentation

Overview

simple module to record the global running mode

Index

Constants

View Source
const (
	Stopped       = Mode(iota)
	Resynchronise = Mode(iota)
	Normal        = Mode(iota)
)

all possible modes

Variables

This section is empty.

Functions

func ChainName

func ChainName() string

name of the current chain

func Finalise

func Finalise()

shutdown mode handling

func Initialise

func Initialise(chainName string)

set up the mode system

func Is

func Is(mode Mode) bool

detect mode

func IsNot

func IsNot(mode Mode) bool

detect mode

func IsTesting

func IsTesting() bool

special for testing

func Set

func Set(mode Mode)

change mode

func String

func String() string

current mode rep[resented as a string

Types

type Mode

type Mode int

type to hold the mode

Jump to

Keyboard shortcuts

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