encoding

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BitmapKeySize = 1 +
	8 +
	8 +
	1 +

	1 // index

Variables

This section is empty.

Functions

func Bitmap added in v1.4.1

func Bitmap(ts, shard uint64, field models.Field, index byte, buf []byte) []byte

Types

type Encoding added in v1.3.0

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

func (*Encoding) APIKeyHash added in v1.3.0

func (e *Encoding) APIKeyHash(hash []byte) []byte

func (*Encoding) APIKeyName added in v1.3.0

func (e *Encoding) APIKeyName(key []byte) []byte

func (*Encoding) Allocate added in v1.4.1

func (e *Encoding) Allocate(n int) []byte

func (*Encoding) Bitmap added in v1.4.1

func (e *Encoding) Bitmap(ts, shard uint64, field models.Field, index byte) []byte

func (*Encoding) Grow added in v1.4.1

func (e *Encoding) Grow(n int)

func (*Encoding) Reset added in v1.3.0

func (e *Encoding) Reset()

func (*Encoding) Site added in v1.3.0

func (e *Encoding) Site(domain []byte) []byte

func (*Encoding) TranslateID added in v1.3.0

func (e *Encoding) TranslateID(field models.Field, id uint64) []byte

func (*Encoding) TranslateKey added in v1.3.0

func (e *Encoding) TranslateKey(field models.Field, value []byte) []byte

func (*Encoding) TranslateSeq added in v1.3.0

func (e *Encoding) TranslateSeq(field models.Field) []byte

type Key

type Key struct {
	Time  uint64
	Field models.Field
}

type ShardKey added in v1.4.1

type ShardKey struct {
	Time  uint64
	Shard uint64
	Field models.Field
}

Jump to

Keyboard shortcuts

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