Documentation ¶
Index ¶
- Constants
- type Key
- func From(key fmt.Stringer) Key
- func FromBz(key []byte) Key
- func FromBzHashed(key []byte) Key
- func FromHashed(key fmt.Stringer) Key
- func FromStr(key string) Key
- func FromStrHashed(key string) Key
- func FromUInt[T constraints.Unsigned](key T) Key
- func RegisterStaticKey(namespace string, prefix uint) Key
Constants ¶
View Source
const DefaultDelimiter = "_"
DefaultDelimiter represents the default delimiter used for the KV store keys when concatenating them together
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
Key provides a type safe way to interact with the store
func From ¶ added in v0.27.0
From creates a new Key from a fmt.Stringer interface Deprecated: use FromHashed instead
func FromBzHashed ¶ added in v0.31.0
FromBzHashed creates a new Key from bytes
func FromHashed ¶ added in v0.31.0
FromHashed creates a new Key from a fmt.Stringer interface
func FromStrHashed ¶ added in v0.31.0
FromStrHashed creates a new Key from a string
func FromUInt ¶
func FromUInt[T constraints.Unsigned](key T) Key
FromUInt creates a new Key from any unsigned integer type
func RegisterStaticKey ¶ added in v0.31.0
RegisterStaticKey registers a static key particle for the data store to ensure uniqueness per namespace. Panics if two prefixes with the same value for the same namespace are registered.
Click to show internal directories.
Click to hide internal directories.