Documentation ¶
Index ¶
- Constants
- type Store
- func (s *Store) Close()
- func (s *Store) Create(ctx context.Context, info oauth2.TokenInfo) error
- func (s *Store) GetByAccess(ctx context.Context, access string) (oauth2.TokenInfo, error)
- func (s *Store) GetByCode(ctx context.Context, code string) (oauth2.TokenInfo, error)
- func (s *Store) GetByRefresh(ctx context.Context, refresh string) (oauth2.TokenInfo, error)
- func (s *Store) RemoveByAccess(ctx context.Context, access string) error
- func (s *Store) RemoveByCode(ctx context.Context, code string) error
- func (s *Store) RemoveByRefresh(ctx context.Context, refresh string) error
Constants ¶
View Source
const (
DefaultInterval = 600
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStoreWithClient ¶
func NewStoreWithDB ¶
func (*Store) GetByAccess ¶
GetByAccess use the access token for token information data
func (*Store) GetByRefresh ¶
GetByRefresh use the refresh token for token information data
func (*Store) RemoveByAccess ¶
RemoveByAccess use the access token to delete the token information
func (*Store) RemoveByCode ¶
RemoveByCode delete the authorization code
Click to show internal directories.
Click to hide internal directories.