Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("storage: not found")
)
Functions ¶
This section is empty.
Types ¶
type StateIterFunc ¶
StateIterFunc is used when iterating through StateStorer key/value pairs
type StateStorer ¶
type StateStorer interface { Get(key string, i interface{}) (err error) Put(key string, i interface{}) (err error) Delete(key string) (err error) Iterate(prefix string, iterFunc StateIterFunc) (err error) // DB returns the underlying DB storage. DB() *leveldb.DB io.Closer }
StateStorer defines methods required to get, set, delete values for different keys and close the underlying resources.
Click to show internal directories.
Click to hide internal directories.