token

package
v0.0.0-...-2ec961a Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	Slock    sync.Mutex
	Token    string
	WeixinID string
	Data     map[string]interface{}
	TimeOut  int
	Redis    *rediscomm.RedisComm
}

func NewAccessToken

func NewAccessToken() *AccessToken

func (*AccessToken) DelToken

func (this *AccessToken) DelToken()

func (*AccessToken) GetNewToken

func (this *AccessToken) GetNewToken() string

func (*AccessToken) GetTokenData

func (this *AccessToken) GetTokenData() *AccessToken

func (*AccessToken) GetTokenRawStr

func (that *AccessToken) GetTokenRawStr() interface{}

func (*AccessToken) GetTokenValue

func (this *AccessToken) GetTokenValue(key string) interface{}

func (*AccessToken) HasToken

func (this *AccessToken) HasToken() bool

func (*AccessToken) Save_Redis_Token

func (this *AccessToken) Save_Redis_Token()

func (*AccessToken) SetData

func (this *AccessToken) SetData(data map[string]interface{})

func (*AccessToken) SetList

func (this *AccessToken) SetList(data map[string]interface{})

func (*AccessToken) SetTimeOut

func (this *AccessToken) SetTimeOut(timeout int) *AccessToken

func (*AccessToken) SetToken

func (this *AccessToken) SetToken(token string) *AccessToken

func (*AccessToken) UpdateToken

func (this *AccessToken) UpdateToken()

Jump to

Keyboard shortcuts

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