internal

package
Version: v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Epoch = time.Date(1970, time.January, 1, 0, 0, 0, 0, time.UTC)

Epoch is 01/01/1970.

Functions

func Decode

func Decode(enc []byte, v interface{}) error

Decode decodes a Base64 encoded JSON object using the proper encoding for JWTs.

func DecodeToBytes

func DecodeToBytes(enc []byte) ([]byte, error)

DecodeToBytes decodes a Base64 string using the proper encoding for JWTs.

func ErrorAs

func ErrorAs(err error, target interface{}) bool

ErrorAs wraps errors.As.

func ErrorIs

func ErrorIs(err, target error) bool

ErrorIs wraps errors.Is.

func Errorf

func Errorf(format string, a ...interface{}) error

Errorf wraps fmt.Errorf.

func GenerateEd25519Keys

func GenerateEd25519Keys() (ed25519.PrivateKey, ed25519.PublicKey)

GenerateEd25519Keys generates a pair of keys for testing purposes.

func NewError

func NewError(text string) error

NewError wraps errors.New.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL