encoding

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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 Bitmap added in v1.4.1

func Bitmap(shard, view uint64, field models.Field) []byte

func BitmapBuf added in v1.6.0

func BitmapBuf(shard, view uint64, field models.Field, b []byte) []byte

func Component added in v1.6.0

func Component(key []byte) (shard, view uint64)

func Shard added in v1.6.0

func Shard(shard uint64) []byte

Shard encodes key that stores bitmap of all views observed in shard. Uses keys.ShardsPrefix as prefix key and encodes shard in big endian notation.

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

This section is empty.

Jump to

Keyboard shortcuts

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