Documentation ¶
Index ¶
- type Client
- type Token
- func (t *Token) GetAccess() string
- func (t *Token) GetAccessCreateAt() time.Time
- func (t *Token) GetAccessExpiresIn() time.Duration
- func (t *Token) GetClientID() string
- func (t *Token) GetCode() string
- func (t *Token) GetCodeChallenge() string
- func (t *Token) GetCodeChallengeMethod() oauth2.CodeChallengeMethod
- func (t *Token) GetCodeCreateAt() time.Time
- func (t *Token) GetCodeExpiresIn() time.Duration
- func (t *Token) GetRedirectURI() string
- func (t *Token) GetRefresh() string
- func (t *Token) GetRefreshCreateAt() time.Time
- func (t *Token) GetRefreshExpiresIn() time.Duration
- func (t *Token) GetScope() string
- func (t *Token) GetUserID() string
- func (t *Token) New() oauth2.TokenInfo
- func (t *Token) SetAccess(access string)
- func (t *Token) SetAccessCreateAt(createAt time.Time)
- func (t *Token) SetAccessExpiresIn(exp time.Duration)
- func (t *Token) SetClientID(clientID string)
- func (t *Token) SetCode(code string)
- func (t *Token) SetCodeChallenge(code string)
- func (t *Token) SetCodeChallengeMethod(method oauth2.CodeChallengeMethod)
- func (t *Token) SetCodeCreateAt(createAt time.Time)
- func (t *Token) SetCodeExpiresIn(exp time.Duration)
- func (t *Token) SetRedirectURI(redirectURI string)
- func (t *Token) SetRefresh(refresh string)
- func (t *Token) SetRefreshCreateAt(createAt time.Time)
- func (t *Token) SetRefreshExpiresIn(exp time.Duration)
- func (t *Token) SetScope(scope string)
- func (t *Token) SetUserID(userID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Token ¶
type Token struct { ClientID string `json:"client_id" pg:"client_id"` UserID string `json:"user_id" pg:"user_id"` RedirectURI string `json:"redirect_uri" pg:"redirect_uri"` Scope string `json:"scope" pg:"scope"` Code string `json:"code" pg:"code"` CodeChallenge string `json:"code_challenge" pg:"code_challenge"` CodeChallengeMethod string `json:"code_challenge_method" pg:"code_challenge_method"` CodeCreateAt time.Time `json:"code_create_at" pg:"code_create_at"` CodeExpiresAt time.Time `json:"code_expires_at" pg:"code_expires_at"` Access string `json:"access" pg:"access"` AccessCreateAt time.Time `json:"access_create_at" pg:"access_create_at"` AccessExpiresAt time.Time `json:"access_expires_at" pg:"access_expires_at"` Refresh string `json:"refresh" pg:"refresh"` RefreshCreateAt time.Time `json:"refresh_create_at" pg:"refresh_create_at"` RefreshExpiresAt time.Time `json:"refresh_expires_at" pg:"refresh_expires_at"` // contains filtered or unexported fields }
func (*Token) GetAccessCreateAt ¶
GetAccessCreateAt create Time
func (*Token) GetAccessExpiresIn ¶
GetAccessExpiresIn the lifetime in seconds of the access token
func (*Token) GetClientID ¶
func (*Token) GetCodeChallenge ¶
GetCodeChallenge challenge code
func (*Token) GetCodeChallengeMethod ¶
func (t *Token) GetCodeChallengeMethod() oauth2.CodeChallengeMethod
GetCodeChallengeMethod challenge method
func (*Token) GetCodeCreateAt ¶
GetCodeCreateAt create Time
func (*Token) GetCodeExpiresIn ¶
GetCodeExpiresIn the lifetime in seconds of the authorization code
func (*Token) GetRefreshCreateAt ¶
GetRefreshCreateAt create Time
func (*Token) GetRefreshExpiresIn ¶
GetRefreshExpiresIn the lifetime in seconds of the refresh token
func (*Token) SetAccessCreateAt ¶
SetAccessCreateAt create Time
func (*Token) SetAccessExpiresIn ¶
SetAccessExpiresIn the lifetime in seconds of the access token
func (*Token) SetCodeChallenge ¶
SetCodeChallenge challenge code
func (*Token) SetCodeChallengeMethod ¶
func (t *Token) SetCodeChallengeMethod(method oauth2.CodeChallengeMethod)
SetCodeChallengeMethod challenge method
func (*Token) SetCodeCreateAt ¶
SetCodeCreateAt create Time
func (*Token) SetCodeExpiresIn ¶
SetCodeExpiresIn the lifetime in seconds of the authorization code
func (*Token) SetRedirectURI ¶
SetRedirectURI redirect URI
func (*Token) SetRefreshCreateAt ¶
SetRefreshCreateAt create Time
func (*Token) SetRefreshExpiresIn ¶
SetRefreshExpiresIn the lifetime in seconds of the refresh token