Documentation ¶
Index ¶
- type Config
- type Store
- func (s *Store) Close()
- func (s *Store) Create(info oauth2.TokenInfo) error
- func (s *Store) GetByAccess(access string) (oauth2.TokenInfo, error)
- func (s *Store) GetByCode(code string) (oauth2.TokenInfo, error)
- func (s *Store) GetByRefresh(refresh string) (oauth2.TokenInfo, error)
- func (s *Store) RemoveByAccess(access string) error
- func (s *Store) RemoveByCode(code string) error
- func (s *Store) RemoveByRefresh(refresh string) error
- func (s *Store) SetStdout(stdout io.Writer) *Store
- type StoreItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store mysql token store
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
func (*Store) RemoveByRefresh ¶
RemoveByRefresh use the refresh token to delete the token information
Click to show internal directories.
Click to hide internal directories.