Documentation
¶
Overview ¶
Package actions provides boutique.Actions to signal modifications to the store.
Index ¶
- Constants
- func DeleteMap(k string) boutique.Action
- func FloatAdd(f float64) boutique.Action
- func FloatSet(f float64) boutique.Action
- func IntAdd(i int64) boutique.Action
- func IntSet(i int64) boutique.Action
- func NameSet(n string) boutique.Action
- func NoOp() boutique.Action
- func ReplaceMap(m map[string]expvar.Var) boutique.Action
- func StoreMap(k string, v expvar.Var) boutique.Action
- func String(s string) boutique.Action
Constants ¶
View Source
const ( // ActNameSet indicates we are going to change the VarState.Name field. ActNameSet boutique.ActionType = iota // ActIntSet indicates we are going to change the VarState.Int to a specific number. ActIntSet // ActIntAdd indicates we are going to change the VarState.Int by adding // to its existing value. ActIntAdd // ActFloatSet indicates we are going to change the VarState.Float to a specific number. ActFloatSet // ActFloatadd indicates we are going to change the VarState.Float by adding // to its existing value. ActFloatAdd // ActString indicates we are going to change the VarState.String . ActString // ActMapStore indicates we are adding a key/value to the VarState.Map . ActMapStore // ActMapDelete indicates we are removing a key/value from the VarState.Map . ActMapDelete // ActMapReplace indicates we are replacing the VarState.Map . ActMapReplace // ActNoOp indicates to increment the NoOp field. ActNoOp )
Variables ¶
This section is empty.
Functions ¶
func DeleteMap ¶
DeleteMap produces an Action that will delete a key/value pair in the VarState.Map field.
func FloatAdd ¶
FloatAdd produces an Action that will change the VarState.Float field by adding to its value.
func FloatSet ¶
FloatSet produces an Action that will change the VarState.Float field by setting its value.
func IntSet ¶
IntSet produces an Action that will change the VarState.Int field by setting its value.
func ReplaceMap ¶
ReplaceMap produces an Action that will replace the map in the VarState.Map field.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.