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) ReadFromMarshalUtil(mu *marshalutil.MarshalUtil) 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) WriteToMarshalUtil(mu *marshalutil.MarshalUtil)
- 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 FromMarshalUtil ¶ added in v0.2.0
func FromMarshalUtil(mu *marshalutil.MarshalUtil) (Dict, error)
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) ReadFromMarshalUtil ¶ added in v0.2.0
func (d Dict) ReadFromMarshalUtil(mu *marshalutil.MarshalUtil) error
func (*Dict) UnmarshalJSON ¶
func (Dict) WriteToMarshalUtil ¶ added in v0.2.0
func (d Dict) WriteToMarshalUtil(mu *marshalutil.MarshalUtil)
Click to show internal directories.
Click to hide internal directories.