statestore

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateStore

type StateStore struct {
	// contains filtered or unexported fields
}

func New

func New(ds datastore.Datastore) *StateStore

func (*StateStore) Begin

func (st *StateStore) Begin(i interface{}, state interface{}) error

func (*StateStore) End

func (st *StateStore) End(i interface{}) error

func (*StateStore) Get

func (st *StateStore) Get(i interface{}, out cbg.CBORUnmarshaler) error

func (*StateStore) Has

func (st *StateStore) Has(i interface{}) (bool, error)

func (*StateStore) List

func (st *StateStore) List(out interface{}) error

out: *[]T

func (*StateStore) Mutate

func (st *StateStore) Mutate(i interface{}, mutator interface{}) error

mutator func(*T) error

Jump to

Keyboard shortcuts

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