key

package
v0.26.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

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

type Key interface {
	Append(Key) Key
	Bytes(delimiter ...string) []byte
}

Key provides a type safe way to interact with the store

func FromBz

func FromBz(key []byte) Key

FromBz creates a new Key from bytes

func FromStr

func FromStr(key string) Key

FromStr 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL