Documentation ¶
Index ¶
- func ToKey(k interface{}) datastore.Key
- type StateStore
- func (st *StateStore) Begin(i interface{}, state interface{}) error
- func (st *StateStore) DeleteList() error
- func (st *StateStore) Get(i interface{}) *StoredState
- func (st *StateStore) GetByKey(i interface{}) ([]byte, error)
- func (st *StateStore) Has(i interface{}) (bool, error)
- func (st *StateStore) List(out interface{}) error
- func (st *StateStore) ListKey(out interface{}) error
- func (st *StateStore) PutBytes(i interface{}, value []byte) error
- func (st *StateStore) PutKey(i interface{}, value interface{}) error
- type StoredState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Get ¶
func (st *StateStore) Get(i interface{}) *StoredState
func (*StateStore) GetByKey ¶
func (st *StateStore) GetByKey(i interface{}) ([]byte, error)
yungolzj
func (*StateStore) Has ¶
func (st *StateStore) Has(i interface{}) (bool, error)
func (*StateStore) PutBytes ¶
func (st *StateStore) PutBytes(i interface{}, value []byte) error
yungolzj
func (*StateStore) PutKey ¶
func (st *StateStore) PutKey(i interface{}, value interface{}) error
yungolzj
type StoredState ¶
type StoredState struct {
// contains filtered or unexported fields
}
func (*StoredState) End ¶
func (st *StoredState) End() error
func (*StoredState) Get ¶
func (st *StoredState) Get(out cbg.CBORUnmarshaler) error
func (*StoredState) Mutate ¶
func (st *StoredState) Mutate(mutator interface{}) error
mutator func(*T) error
Click to show internal directories.
Click to hide internal directories.