record

package
Version: v0.0.0-...-5b112dc Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadKeyLength = fmt.Errorf("record: bad key length")
View Source
var ErrBadValueLength = fmt.Errorf("record: bad value length")
View Source
var ErrGotEmptyKeyValue = fmt.Errorf("record: empty key or value, not allowed")

Functions

func EncodeRecord

func EncodeRecord(key []byte, value []byte) ([]byte, error)

Types

type Record

type Record struct {
	Status    uint8
	Next      uint64
	Timestamp time.Time
	KeyLen    uint16
	ValLen    uint32
	Key       []byte
	Value     []byte
}

func DecodeRecord

func DecodeRecord(d []byte) (*Record, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL