Documentation ¶
Overview ¶
Package leveldbstore implements a simple key-value local store. It's efficient and can be used by stores to save key-value pairs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Path where key-value pairs will be saved. Path string }
Config contains configuration options for the store.
type LevelDBStore ¶
type LevelDBStore struct {
// contains filtered or unexported fields
}
LevelDBStore implements github.com/stratumn/sdk/store.KeyValueStore.
func New ¶
func New(config *Config) (*LevelDBStore, error)
New creates an instance of a LevelDBStore.
func (*LevelDBStore) DeleteValue ¶
func (a *LevelDBStore) DeleteValue(key []byte) ([]byte, error)
DeleteValue implements github.com/stratumn/sdk/store.KeyValueStore.DeleteValue.
Click to show internal directories.
Click to hide internal directories.