authz

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const RefreshTokenInterval = 2 * time.Hour
View Source
const TokenLength = 20

Variables

This section is empty.

Functions

This section is empty.

Types

type Authz

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

func New

func New() *Authz

func (*Authz) GetToken

func (a *Authz) GetToken() string

func (*Authz) GetTokenExpiresTime

func (a *Authz) GetTokenExpiresTime() time.Time

func (*Authz) IsValid

func (a *Authz) IsValid(token string) bool

func (*Authz) PrintToken

func (a *Authz) PrintToken()

func (*Authz) Stop

func (a *Authz) Stop()

Jump to

Keyboard shortcuts

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