Documentation ¶
Index ¶
- type Dict
- func (d Dict) Bytes() []byte
- func (d Dict) Clone() Dict
- func (d Dict) Del(key kv.Key)
- func (d Dict) Equals(d1 Dict) bool
- func (d Dict) Extend(from Dict)
- func (d Dict) ForEach(fun func(key kv.Key, value []byte) bool)
- func (d Dict) Get(key kv.Key) []byte
- func (d Dict) Has(key kv.Key) bool
- func (d Dict) Hash() hashing.HashValue
- func (d Dict) IsEmpty() bool
- func (d Dict) Iterate(prefix kv.Key, f func(key kv.Key, value []byte) bool)
- func (d Dict) IterateKeys(prefix kv.Key, f func(key kv.Key) bool)
- func (d Dict) IterateKeysSorted(prefix kv.Key, f func(key kv.Key) bool)
- func (d Dict) IterateSorted(prefix kv.Key, f func(key kv.Key, value []byte) bool)
- func (d Dict) JSONDict() JSONDict
- func (d Dict) Keys() []kv.Key
- func (d Dict) KeysSorted() []kv.Key
- func (d Dict) MarshalJSON() ([]byte, error)
- func (d *Dict) Read(r io.Reader) error
- func (d Dict) Set(key kv.Key, value []byte)
- func (d Dict) String() string
- func (d *Dict) UnmarshalJSON(b []byte) error
- func (d *Dict) Write(w io.Writer) error
- type Item
- type JSONDict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dict ¶
Dict is an implementation kv.KVStore interface backed by an in-memory map. kv.KVStore represents a key-value store where both keys and values are arbitrary byte slices.
func FromJSONDict ¶ added in v1.0.3
FromJSONDict returns a dict based off an JSONDict
func FromKVStore ¶
func FromKVStore(s kv.KVStoreReader) Dict
FromKVStore convert (copy) any KVStore to dict
func (Dict) IterateKeys ¶
IterateKeys over keys with prefix
func (Dict) IterateKeysSorted ¶ added in v0.2.0
func (Dict) IterateSorted ¶ added in v0.2.0
func (Dict) MarshalJSON ¶
func (*Dict) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.