generates

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 19, 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 Generate the access token

func NewAccessGenerate

func NewAccessGenerate() *AccessGenerate

NewAccessGenerate Create to generate the access token instance

func (*AccessGenerate) Token

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

Token Based on the UUID generated token

type AuthorizeGenerate

type AuthorizeGenerate struct{}

AuthorizeGenerate Generate the authorize code

func NewAuthorizeGenerate

func NewAuthorizeGenerate() *AuthorizeGenerate

NewAuthorizeGenerate Create to generate the authorize code instance

func (*AuthorizeGenerate) Token

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

Token Based on the UUID generated token

Jump to

Keyboard shortcuts

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