keys

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultNS = "vince"

Variables

This section is empty.

Functions

This section is empty.

Types

type Key added in v0.0.30

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

func AAccess added in v0.0.31

func AAccess(id string) *Key

func AAuthorize added in v0.0.31

func AAuthorize(id string) *Key

func AClient added in v0.0.31

func AClient(id string) *Key

func ARefresh added in v0.0.31

func ARefresh(id string) *Key

func Account

func Account(name string) *Key

Returns a key which stores account object in badger db.

func BlockIndex

func BlockIndex(domain, uid string) *Key

Returns key which stores a block index in badger db.

func BlockMeta

func BlockMeta(domain, uid string) *Key

Returns key which stores a block metadata in badger db.

func Cluster added in v0.0.30

func Cluster() *Key

func New added in v0.0.30

func New(prefix v1.StorePrefix, ns ...string) *Key

func Site

func Site(domain string) *Key

Returns a key that stores Site object in the badger database with the given domain.

func Snippet added in v0.0.37

func Snippet(uid, sid string) *Key

func Token

func Token(token string) *Key

func (*Key) Bytes added in v0.0.30

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

func (*Key) Path added in v0.0.30

func (k *Key) Path(parts ...string) *Key

func (*Key) Release added in v0.0.30

func (k *Key) Release()

Jump to

Keyboard shortcuts

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