Documentation
¶
Index ¶
- func NewState() (state.State, error)
- type LocalState
- func (ls *LocalState) Get() *state.Grid
- func (ls *LocalState) GetList(listUri string) *state.List
- func (ls *LocalState) Lock(listUri string) error
- func (ls *LocalState) Save(s *state.Grid) error
- func (ls *LocalState) SaveList(listUri string, entityState *state.List) error
- func (ls *LocalState) Unlock(listUri string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalState ¶
LocalState struct
func (*LocalState) GetList ¶
func (ls *LocalState) GetList(listUri string) *state.List
GetEnt gets entity state
func (*LocalState) Lock ¶
func (ls *LocalState) Lock(listUri string) error
Lock locks entity sync for other clients
func (*LocalState) SaveList ¶
func (ls *LocalState) SaveList(listUri string, entityState *state.List) error
SaveEnt saves entity state
func (*LocalState) Unlock ¶
func (ls *LocalState) Unlock(listUri string) error
Unlock unlocks entity sync for other clients
Click to show internal directories.
Click to hide internal directories.