access

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Zlib Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpireSecond

func ExpireSecond(expire int64) int64

ExpireSecond *

  • @param expire 秒
  • @return Nanosecond,纳秒

func RefExpireSecond

func RefExpireSecond(expire int64) int64

RefExpireSecond *

  • @param expire 秒
  • @return Nanosecond,纳秒

Types

type Token

type Token interface {
	GetAccessToken() Value
	GetRefAccessToken() Value
}

type Value

type Value struct {
	Data     string
	ExpireIn int64
}

func (Value) IsValidOf

func (v Value) IsValidOf() bool

Jump to

Keyboard shortcuts

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