encoding

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: AGPL-3.0 Imports: 4 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(field models.Field, res Resolution, ts uint64, shard uint64) []byte

func BitmapBuf added in v1.6.0

func BitmapBuf(field models.Field, res Resolution, ts uint64, shard uint64, b []byte) []byte

func Max added in v1.7.0

func Max(field models.Field, res Resolution, ts uint64) []byte

func Min added in v1.7.0

func Min(field models.Field, res Resolution, ts uint64) []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 Resolution added in v1.7.0

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

func Component added in v1.6.0

func Component(key []byte) (field models.Field, res Resolution, view, shard uint64)

Jump to

Keyboard shortcuts

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