Documentation ¶
Index ¶
- func AddToNumber[T maths.Number](store feature.KeyValueStore, key string, increment T) (updated T, err error)
- func AppendToFlatList[T comparable](store feature.KeyValueStore, key string, value T) (err error)
- func AppendToSlice[T Variables](store feature.KeyValueStore, key string, values ...T) (err error)
- func AppendToStringSlice(store feature.KeyValueStore, key string, values ...string) (err error)
- func AsExtended(store feature.KeyValueStore) (extended feature.ExtendedKeyValueStore, err error)
- func CountDistinctFlatListValues[T comparable](store feature.KeyValueStore, key string) (count uint64)
- func CountFlatList(store feature.KeyValueStore, key string) (count uint64)
- func CountFlatListValues[T comparable](store feature.KeyValueStore, key string) (counts map[T]uint64)
- func ExtendedBucket(cache feature.KeyValueCache, name string) (store feature.ExtendedKeyValueStore, err error)
- func FirstInFlatList[T comparable](store feature.KeyValueStore, key string) (value T, ok bool)
- func FlatListEmpty(store feature.KeyValueStore, key string) (empty bool)
- func GetFlatList[T comparable](store feature.KeyValueStore, key string) (values []T)
- func GetIsNil(store feature.KeyValueStore, key string) (isNil bool)
- func GetSlice[T Variables](store feature.KeyValueStore, key string) (values []T, err error)
- func GetStringSlice(store feature.KeyValueStore, key string) (values []string, err error)
- func GetUnmarshal[T interface{}](store feature.KeyValueStore, key string, value *T) (err error)
- func GetValue[T interface{}](store feature.KeyValueStore, key string) (value T)
- func IsSet(store feature.KeyValueStore, key string) (present bool)
- func LastInFlatList[T comparable](store feature.KeyValueStore, key string) (value T, ok bool)
- func MakeFlatListKey(key string, suffixes ...string) (name string)
- func Marshal(value interface{}) (data []byte, err error)
- func MarshalConcrete(value interface{}) (data string, err error)
- func MustAsExtended(store feature.KeyValueStore) (extended feature.ExtendedKeyValueStore)
- func MustExtendedBucket(cache feature.KeyValueCache, name string) (store feature.ExtendedKeyValueStore)
- func RangeFlatList[T comparable](store feature.KeyValueStore, key string, fn func(item T) (stop bool))
- func RemoveFromFlatList[T comparable](store feature.KeyValueStore, key string, value T) (err error)
- func RemoveFromSlice[T Variables](store feature.KeyValueStore, key string, values ...T) (err error)
- func ResetFlatList(store feature.KeyValueStore, key string) (reset bool)
- func ResetFlatListIfEmpty(store feature.KeyValueStore, key string) (reset bool)
- func SetFlatList[T comparable](store feature.KeyValueStore, key string, values []T) (err error)
- func SetMarshal(store feature.KeyValueStore, key string, value interface{}) (err error)
- func SetSlice[T Variables](store feature.KeyValueStore, key string, values []T) (err error)
- func StringSliceEmpty(store feature.KeyValueStore, key string) (empty bool)
- func Unmarshal[T interface{}](data []byte, value *T) (err error)
- func UnmarshalConcrete[V string | []byte](input V) (value interface{}, err error)
- func YieldFlatList[T comparable](store feature.KeyValueStore, key string) (yield chan T)
- type ConcreteTag
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToNumber ¶
func AppendToFlatList ¶
func AppendToFlatList[T comparable](store feature.KeyValueStore, key string, value T) (err error)
func AppendToSlice ¶
func AppendToSlice[T Variables](store feature.KeyValueStore, key string, values ...T) (err error)
func AppendToStringSlice ¶ added in v0.2.11
func AppendToStringSlice(store feature.KeyValueStore, key string, values ...string) (err error)
func AsExtended ¶ added in v0.5.6
func AsExtended(store feature.KeyValueStore) (extended feature.ExtendedKeyValueStore, err error)
func CountDistinctFlatListValues ¶ added in v0.2.11
func CountDistinctFlatListValues[T comparable](store feature.KeyValueStore, key string) (count uint64)
func CountFlatList ¶ added in v0.2.11
func CountFlatList(store feature.KeyValueStore, key string) (count uint64)
func CountFlatListValues ¶ added in v0.2.11
func CountFlatListValues[T comparable](store feature.KeyValueStore, key string) (counts map[T]uint64)
func ExtendedBucket ¶ added in v0.5.6
func ExtendedBucket(cache feature.KeyValueCache, name string) (store feature.ExtendedKeyValueStore, err error)
func FirstInFlatList ¶ added in v0.5.0
func FirstInFlatList[T comparable](store feature.KeyValueStore, key string) (value T, ok bool)
func FlatListEmpty ¶ added in v0.2.11
func FlatListEmpty(store feature.KeyValueStore, key string) (empty bool)
func GetFlatList ¶
func GetFlatList[T comparable](store feature.KeyValueStore, key string) (values []T)
func GetSlice ¶
func GetSlice[T Variables](store feature.KeyValueStore, key string) (values []T, err error)
func GetStringSlice ¶ added in v0.2.11
func GetStringSlice(store feature.KeyValueStore, key string) (values []string, err error)
func GetUnmarshal ¶ added in v0.5.6
func GetUnmarshal[T interface{}](store feature.KeyValueStore, key string, value *T) (err error)
func GetValue ¶
func GetValue[T interface{}](store feature.KeyValueStore, key string) (value T)
func LastInFlatList ¶ added in v0.5.0
func LastInFlatList[T comparable](store feature.KeyValueStore, key string) (value T, ok bool)
func MakeFlatListKey ¶
func MarshalConcrete ¶ added in v0.5.6
func MustAsExtended ¶ added in v0.5.6
func MustAsExtended(store feature.KeyValueStore) (extended feature.ExtendedKeyValueStore)
func MustExtendedBucket ¶ added in v0.5.6
func MustExtendedBucket(cache feature.KeyValueCache, name string) (store feature.ExtendedKeyValueStore)
func RangeFlatList ¶ added in v0.5.6
func RangeFlatList[T comparable](store feature.KeyValueStore, key string, fn func(item T) (stop bool))
func RemoveFromFlatList ¶ added in v0.5.0
func RemoveFromFlatList[T comparable](store feature.KeyValueStore, key string, value T) (err error)
func RemoveFromSlice ¶
func RemoveFromSlice[T Variables](store feature.KeyValueStore, key string, values ...T) (err error)
func ResetFlatList ¶ added in v0.5.0
func ResetFlatList(store feature.KeyValueStore, key string) (reset bool)
func ResetFlatListIfEmpty ¶ added in v0.5.0
func ResetFlatListIfEmpty(store feature.KeyValueStore, key string) (reset bool)
func SetFlatList ¶ added in v0.5.6
func SetFlatList[T comparable](store feature.KeyValueStore, key string, values []T) (err error)
func SetMarshal ¶ added in v0.5.6
func SetMarshal(store feature.KeyValueStore, key string, value interface{}) (err error)
func SetSlice ¶ added in v0.5.0
func SetSlice[T Variables](store feature.KeyValueStore, key string, values []T) (err error)
func StringSliceEmpty ¶ added in v0.2.11
func StringSliceEmpty(store feature.KeyValueStore, key string) (empty bool)
func UnmarshalConcrete ¶ added in v0.5.6
func YieldFlatList ¶
func YieldFlatList[T comparable](store feature.KeyValueStore, key string) (yield chan T)
Types ¶
type ConcreteTag ¶ added in v0.5.6
type ConcreteTag uint8
const ( StartConcreteTags ConcreteTag = iota + 1 CString CFloat32 CFloat64 CInt CInt8 CInt16 CInt32 CInt64 CUint CUint8 CUint16 CUint32 CUint64 CTimeTime CTimeDuration CStringSlice CInterfaceSlice EndConcreteTags )
func GetConcreteTag ¶ added in v0.5.6
func GetConcreteTag(value interface{}) (tag ConcreteTag)
func (ConcreteTag) String ¶ added in v0.5.6
func (t ConcreteTag) String() (value string)
func (ConcreteTag) Valid ¶ added in v0.5.6
func (t ConcreteTag) Valid() (valid bool)
Click to show internal directories.
Click to hide internal directories.