encoding

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BitmapKeySize = bmContainer + 8
)

Variables

This section is empty.

Functions

func ACME added in v1.5.1

func ACME(key []byte) []byte

func APIKeyHash added in v1.5.1

func APIKeyHash(hash []byte) []byte

func APIKeyName added in v1.5.1

func APIKeyName(key []byte) []byte

func Site added in v1.5.1

func Site(domain []byte) []byte

func TranslateID added in v1.5.1

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

func TranslateKey added in v1.5.1

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

func TranslateSeq added in v1.5.1

func TranslateSeq(field models.Field, o []byte) []byte

Types

type Key

type Key [BitmapKeySize]byte

func From added in v1.8.0

func From(a []byte) *Key

func (*Key) Bytes added in v1.8.0

func (k *Key) Bytes() []byte

func (*Key) Component added in v1.8.0

func (k *Key) Component() (field models.Field, co uint64)

func (*Key) Reset added in v1.8.0

func (k *Key) Reset()

func (*Key) WriteData added in v1.8.0

func (k *Key) WriteData(field models.Field, co uint64)

func (*Key) WriteExistence added in v1.8.0

func (k *Key) WriteExistence(field models.Field, co uint64)

type Resolution added in v1.7.0

type Resolution byte
const (
	Global Resolution = iota
	Minute
	Hour
	Day
	Week
	Month
)

Jump to

Keyboard shortcuts

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