token

package
v0.0.0-...-8b7ce6b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstantTimeCompare

func ConstantTimeCompare(a string, b string) bool

func Generate

func Generate(config config.Config) (string, error)

Types

type AlphaNumericTokenGenerator

type AlphaNumericTokenGenerator struct {
}

type NumericTokenGenerator

type NumericTokenGenerator struct {
}

type TokenGenerator

type TokenGenerator interface {
	// contains filtered or unexported methods
}

func GeneratorFromConfig

func GeneratorFromConfig(config config.Config) TokenGenerator

Jump to

Keyboard shortcuts

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