key

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MonotonicULIDGenerator *monotonicULIDGenerator
)

Functions

func HashOf

func HashOf(k Key) uint64

Returns the hashed name part of the key

func PrefixOf

func PrefixOf(seek, until Key) []byte

PrefixOf a common prefix between two keys (common leading bytes) which is then used as a prefix for Badger to narrow down SSTables to traverse.

Types

type Key

type Key []byte

Key represents a lexicographically sortable key

func Clone

func Clone(k Key) Key

Clone clones a key

func New

func New(name []byte, timestamp time.Time) (Key, error)

New generates a new lexicographically sortable key

Jump to

Keyboard shortcuts

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