records

package
v0.0.0-...-13a9267 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(record Record, encoder binary.ByteOrder) []byte

Types

type Record

type Record struct {
	// contains filtered or unexported fields
}

func Decode

func Decode(payload []byte, decoder binary.ByteOrder) (Record, error)

func New

func New(key, value []byte) Record

func (Record) Bytes

func (r Record) Bytes() []byte

func (Record) Checksum

func (r Record) Checksum() uint32

func (Record) Key

func (r Record) Key() []byte

func (Record) Value

func (r Record) Value() []byte

Jump to

Keyboard shortcuts

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