Documentation ¶
Index ¶
- type Meta
- func (m *Meta) Data() *Meta
- func (m *Meta) Encode() []byte
- func (m *Meta) Info() *Meta
- func (m *Meta) Release()
- func (m *Meta) Reset() *Meta
- func (m *Meta) String() string
- func (m *Meta) WithID(id uint64) *Meta
- func (m *Meta) WithNS(id uint64) *Meta
- func (m *Meta) WithRESOURCE(res v1.RESOURCE) *Meta
- type Sample
- func (s *Sample) Encode() []byte
- func (s *Sample) Release()
- func (s *Sample) Reset() *Sample
- func (s *Sample) String() string
- func (s *Sample) WithID(id uint64) *Sample
- func (s *Sample) WithNamespace(ns uint64) *Sample
- func (s *Sample) WithPrefix(r v1.PREFIX) *Sample
- func (s *Sample) WithResource(r v1.RESOURCE) *Sample
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (*Sample) WithNamespace ¶
Click to show internal directories.
Click to hide internal directories.