tokenvalidator

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Secret string `env:"ILLA_SECRET_KEY" envDefault:""`
}

func GetConfig

func GetConfig() (*Config, error)

type RequestTokenValidator

type RequestTokenValidator struct {
	Config *Config
}

func NewRequestTokenValidator

func NewRequestTokenValidator() (*RequestTokenValidator, error)

func (*RequestTokenValidator) GenerateValidateToken

func (r *RequestTokenValidator) GenerateValidateToken(input ...string) string

func (*RequestTokenValidator) GenerateValidateTokenBySliceParam

func (r *RequestTokenValidator) GenerateValidateTokenBySliceParam(input []string) string

Jump to

Keyboard shortcuts

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