Documentation ¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) DB() *leveldb.DB
- 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(forgetStamps bool) 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 ¶ added in v1.3.0
type Store struct {
// contains filtered or unexported fields
}
Store uses LevelDB to store values.
func NewInMemoryStateStore ¶ added in v1.1.0
func NewStateStore ¶
NewStateStore creates a new persistent state storage.
func (*Store) Get ¶ added in v1.3.0
Get retrieves a value of the requested key. If no results are found, storage.ErrNotFound will be returned.
func (*Store) Iterate ¶ added in v1.3.0
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.