kv

package
v0.0.0-...-eb23ef5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyAccountAccessToken

func KeyAccountAccessToken(i int64) string

KeyAccountAccessToken returns the kv key which holds a user's access token.

func KeyFediActor

func KeyFediActor(a string) string

KeyFediActor returns the kv key which holds cached actor.

func KeyFediHostMeta

func KeyFediHostMeta(d string) string

KeyFediHostMeta returns the kv key which holds cached host meta.

func KeyFediNodeInfo

func KeyFediNodeInfo(d string) string

KeyFediNodeInfo returns the kv key which holds cached nodeinfo.

func KeyInstanceOAuth

func KeyInstanceOAuth(i int64) string

KeyInstanceOAuth returns the kv key which holds an instance's oauth tokens.

func KeySession

func KeySession() string

KeySession returns the base kv key prefix.

Types

type EncryptionError

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

EncryptionError is returned when a an encryption error occurs.

func (*EncryptionError) Error

func (e *EncryptionError) Error() string

Error returns the error message as a string.

type Error

type Error error

Error represents a database specific error.

var (
	// ErrNil is returned when the kv value is nil.
	ErrNil Error = fmt.Errorf("nil")
)

func NewEncryptionError

func NewEncryptionError(msg string) Error

NewEncryptionError wraps a message in an EncryptionError object.

type KV

type KV interface {
	fedihelper.KV
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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