key

package
v0.0.0-...-7638244 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashOf

func HashOf(k Key) uint32

HashOf returns the hash value 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 sorted key

func Clone

func Clone(k Key) Key

Clone clones a key

func First

func First() Key

First returns the smallest possible key

func Last

func Last() Key

Last returns the largest possible key

func New

func New(eventName string, tsi time.Time) Key

New generates a new key for the storage.

Jump to

Keyboard shortcuts

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