token

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrudPayToken

type CrudPayToken struct {
	AccessToken         string
	RefreshToken        string
	AccessUuid          string
	RefreshUuid         string
	AccessTokenExpires  int64
	RefreshTokenExpires int64
}

func NewCrudPayToken

func NewCrudPayToken() *CrudPayToken

func (*CrudPayToken) RefreshTokenIsExpired

func (token *CrudPayToken) RefreshTokenIsExpired() bool

func (*CrudPayToken) TokenIsExpired

func (token *CrudPayToken) TokenIsExpired() bool

type Repository

type Repository interface {
	CreateToken(string) (*CrudPayToken, *response.BaseResponse)
	Get(string) (*string, *response.BaseResponse)
	Update(string) (*CrudPayToken, *response.BaseResponse)
}

Jump to

Keyboard shortcuts

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