keys

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta [8 + 4 + 4 + +8]byte

func NewMeta

func NewMeta() *Meta

func (*Meta) Data

func (m *Meta) Data() *Meta

func (*Meta) Encode

func (m *Meta) Encode() []byte

func (*Meta) Info

func (m *Meta) Info() *Meta

func (*Meta) Release

func (m *Meta) Release()

func (*Meta) Reset

func (m *Meta) Reset() *Meta

func (*Meta) String

func (m *Meta) String() string

func (*Meta) WithID

func (m *Meta) WithID(id uint64) *Meta

func (*Meta) WithNS

func (m *Meta) WithNS(id uint64) *Meta

func (*Meta) WithRESOURCE

func (m *Meta) WithRESOURCE(res v1.RESOURCE) *Meta

type Sample

type Sample [8 + 4 + 4 + 8]byte

Sample represents a unique key for a specific sample

8 bytes for namespace
4 bytes for resource
4 bytes for prefix which defaults to v1.PREFIX_DATA
8 bytes for sample id

This object is pooled so all uses must start by calling New and ensure Release is called after use.

func New

func New() *Sample

func (*Sample) Encode

func (s *Sample) Encode() []byte

func (*Sample) Release

func (s *Sample) Release()

func (*Sample) Reset

func (s *Sample) Reset() *Sample

func (*Sample) String

func (s *Sample) String() string

func (*Sample) WithID

func (s *Sample) WithID(id uint64) *Sample

func (*Sample) WithNamespace

func (s *Sample) WithNamespace(ns uint64) *Sample

func (*Sample) WithPrefix

func (s *Sample) WithPrefix(r v1.PREFIX) *Sample

func (*Sample) WithResource

func (s *Sample) WithResource(r v1.RESOURCE) *Sample

Jump to

Keyboard shortcuts

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