tokens

package
v0.0.0-...-aa28848 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomString

func RandomString(n int) string

Types

type Token

type Token struct {
	ValidTo         time.Time
	ExpiresReadable string
	Id              string
	VerifiedCount   int
}

type Tokens

type Tokens struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func Init

func Init() Tokens

func (*Tokens) Cleanup

func (t *Tokens) Cleanup()

func (*Tokens) Generate

func (t *Tokens) Generate() string

func (*Tokens) GetAllTokens

func (t *Tokens) GetAllTokens() []Token

func (*Tokens) Verify

func (t *Tokens) Verify(token string) bool

Jump to

Keyboard shortcuts

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