local

package
v0.0.0-...-03b3635 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewState

func NewState() (state.State, error)

NewState local state constructor

Types

type LocalState

type LocalState struct {
	*state.Grid
}

LocalState struct

func (*LocalState) Get

func (ls *LocalState) Get() *state.Grid

Get gets state

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) Save

func (ls *LocalState) Save(s *state.Grid) error

Save saves state

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

Jump to

Keyboard shortcuts

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