generates

package
Version: v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessGenerate

type AccessGenerate struct {
}

AccessGenerate 访问令牌生成

func NewAccessGenerate

func NewAccessGenerate() *AccessGenerate

NewAccessGenerate 创建访问令牌生成实例

func (*AccessGenerate) Token

func (ag *AccessGenerate) Token(data *oauth2.GenerateBasic, isGenRefresh bool) (access, refresh string, err error)

Token 生成令牌

type AuthorizeGenerate

type AuthorizeGenerate struct{}

AuthorizeGenerate 授权令牌生成

func NewAuthorizeGenerate

func NewAuthorizeGenerate() *AuthorizeGenerate

NewAuthorizeGenerate 创建授权令牌生成实例

func (*AuthorizeGenerate) Token

func (ag *AuthorizeGenerate) Token(data *oauth2.GenerateBasic) (code string, err error)

Token 生成令牌

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL