store

package
v0.0.0-...-bb899d6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storer

type Storer interface {
	// 存储令牌数据,并指定到期时间
	Set(tokenString string, expiration time.Duration) error
	// 检查令牌是否存在
	Check(tokenString string) (bool, error)
	// 关闭存储
	Close() error
}

Storer 令牌存储接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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