Documentation
¶
Overview ¶
Package data provides state data for boutique stores.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VarState ¶
type VarState struct { // Name is the name of the published variable this represents. Name string // Type indicates the type of variable being stored. Type VarType // Int represents an int. Int int64 // Float represents a float64. Float float64 // Map represents a key/value lookup of expvar.Vars. Map map[string]expvar.Var // NoOp is incremented to indicate a Map sub value has changed. NoOp uint64 // String represents a string String string // Func represents a function. Func func() interface{} }
VarState holds state data for expvar's.
type VarType ¶
type VarType int
VarType is used to indicate what type of variable is stored.
const ( // UnknownType indicates that the VarType wasn't set. UnknownType VarType = 0 // IntType indicates we are storing an Int. IntType VarType = 1 // FloatType indicates we are storing a Float. FloatType VarType = 2 // StringType indicates we are storing a String. StringType VarType = 3 // MapType indicates we are storing a Map. MapType VarType = 4 // FuncType indicates we are storing a func. FuncType VarType = 5 )
Click to show internal directories.
Click to hide internal directories.