token_util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenUtil

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

func NewTokenUtil

func NewTokenUtil(salt string) *TokenUtil

func (*TokenUtil) AppendWhiteListToken

func (tutil *TokenUtil) AppendWhiteListToken(raw_tokens map[string]interface{})

append raw whitelist token list

func (*TokenUtil) CheckToken

func (tutil *TokenUtil) CheckToken(token string) (bool, bool)

return is_token,is_super_token

func (*TokenUtil) GenSuperToken added in v0.2.1

func (tutil *TokenUtil) GenSuperToken() string

func (*TokenUtil) GenToken

func (tutil *TokenUtil) GenToken() string

func (*TokenUtil) GetWhiteListToken

func (tutil *TokenUtil) GetWhiteListToken(token string) interface{}

return nil if not found

Jump to

Keyboard shortcuts

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