token

package
v0.0.0-...-df00f50 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Prefix string // 前缀
}

func NewToken

func NewToken(prefix string) *Token

* token对象

func (*Token) GenerateToken

func (t *Token) GenerateToken() string

* 生成token

type TokenInterface

type TokenInterface interface {
	GenerateToken() string // 生成token
}

Jump to

Keyboard shortcuts

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