Documentation ¶
Index ¶
Constants ¶
View Source
const Version = 1
Version is the map state Version. States with old versions should perform an upgrade before.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapState ¶
type MapState struct { PinMap map[string]api.PinSerial Version int // contains filtered or unexported fields }
MapState is a very simple database to store the state of the system using a Go map. It is thread safe. It implements the State interface.
func NewMapState ¶
func NewMapState() *MapState
NewMapState initializes the internal map and returns a new MapState object.
Click to show internal directories.
Click to hide internal directories.