Versions in this module Expand all Collapse all v0 v0.1.0 Dec 21, 2022 Changes in this version + const BoltDB + const InMemory + type KeyValueStore interface + Delete func(key K) + Put func(key K, value V) + func NewKeyValueStore(opts Options[K, V]) KeyValueStore[K, V] + type Option func(*options[K, V]) + func WithBoltDB(name string) Option[K, V] + func WithDirPath(dirPath string) Option[K, V] + func WithInMemory() Option[K, V] + func WithKeySerde(keySerde Serde[K]) Option[K, V] + func WithValueSerde(valueSerde Serde[V]) Option[K, V] + type Options interface + DirPath func() string + KeySerde func() Serde[K] + Name func() string + StoreType func() StoreType + ValueSerde func() Serde[V] + func NewOptions(opts ...Option[K, V]) Options[K, V] + type ReadOnlyKeyValueStore interface + Get func(key K) (V, error) + type Serde interface + Deserialize func([]byte) T + Serialize func(T) []byte + type StoreType int