Documentation ¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) Delete(key string) (err error)
- func (s *Store) Get(key string, i interface{}) error
- func (s *Store) Iterate(prefix string, iterFunc storage.StateIterFunc) (err error)
- func (s *Store) Nuke() error
- func (s *Store) Put(key string, i interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store uses LevelDB to store values.
func NewStateStore ¶
NewStateStore creates a new persistent state storage.
func (*Store) Get ¶
Get retrieves a value of the requested key. If no results are found, storage.ErrNotFound will be returned.
func (*Store) Iterate ¶
func (s *Store) Iterate(prefix string, iterFunc storage.StateIterFunc) (err error)
Iterate entries that match the supplied prefix.
Click to show internal directories.
Click to hide internal directories.