Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotExist = errors.New("key does not exist")
Functions ¶
func NewInMemorySqliteDbForKvStore ¶ added in v1.11.0
func NewSqliteDbForKvStore ¶ added in v1.11.0
Types ¶
type KvStore ¶
type KvStore interface {
// Get retrieves the value for the given key.
Get(key string) ([]byte, error)
// Set sets the value for the given key.
Set(key string, value []byte) error
// ForEach iterates over all key-value pairs with the given prefix.
ForEach(prefix string, onRow func(key string, value []byte) error) error
}
Click to show internal directories.
Click to hide internal directories.