Documentation ¶
Index ¶
- Variables
- type Client
- type ClientStore
- type TokenStore
- func (ts *TokenStore) Create(ctx context.Context, token *token.Token) error
- func (ts *TokenStore) GetByAccess(ctx context.Context, access string) (*token.Token, error)
- func (ts *TokenStore) GetByRefresh(ctx context.Context, refresh string) (*token.Token, error)
- func (ts *TokenStore) GetTokenByCode(ctx context.Context, code string) (*token.Token, error)
- func (ts *TokenStore) RemoveByAccess(ctx context.Context, access string) error
- func (ts *TokenStore) RemoveByCode(ctx context.Context, code string) error
- func (ts *TokenStore) RemoveByRefresh(ctx context.Context, refresh string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientPrefix = "/sapi/oauth2/client"
View Source
var TokenPrefix = "/sapi/oauth2/token"
Functions ¶
This section is empty.
Types ¶
type ClientStore ¶
type TokenStore ¶
func (*TokenStore) GetByAccess ¶
func (*TokenStore) GetByRefresh ¶
func (*TokenStore) GetTokenByCode ¶
func (*TokenStore) RemoveByAccess ¶
func (ts *TokenStore) RemoveByAccess(ctx context.Context, access string) error
func (*TokenStore) RemoveByCode ¶
func (ts *TokenStore) RemoveByCode(ctx context.Context, code string) error
func (*TokenStore) RemoveByRefresh ¶
func (ts *TokenStore) RemoveByRefresh(ctx context.Context, refresh string) error
Click to show internal directories.
Click to hide internal directories.