Versions in this module Expand all Collapse all v1 v1.1.3 Sep 9, 2020 v1.1.2 Sep 9, 2020 v1.1.1 Sep 9, 2020 Changes in this version + type ClientStore struct + func NewClientStore(db *sqlx.DB, options ...ClientStoreOption) (*ClientStore, error) + func (s *ClientStore) Create(info oauth2.ClientInfo) error + func (s *ClientStore) GetByID(id string) (oauth2.ClientInfo, error) + type ClientStoreItem struct + Data string + Domain string + ID string + Secret string + type ClientStoreOption func(s *ClientStore) + func WithClientStoreInitTableDisabled() ClientStoreOption + func WithClientStoreTableName(tableName string) ClientStoreOption + type TokenStore struct + func NewTokenStore(db *sqlx.DB, options ...TokenStoreOption) (*TokenStore, error) + func (s *TokenStore) Close() error + func (s *TokenStore) Create(info oauth2.TokenInfo) error + func (s *TokenStore) GetByAccess(access string) (oauth2.TokenInfo, error) + func (s *TokenStore) GetByCode(code string) (oauth2.TokenInfo, error) + func (s *TokenStore) GetByRefresh(refresh string) (oauth2.TokenInfo, error) + func (s *TokenStore) RemoveByAccess(access string) error + func (s *TokenStore) RemoveByCode(code string) error + func (s *TokenStore) RemoveByRefresh(refresh string) error + type TokenStoreItem struct + Access string + Code string + CreatedAt time.Time + Data string + ExpiredAt time.Time + ID int64 + Refresh string + type TokenStoreOption func(s *TokenStore) + func WithTokenStoreGCDisabled() TokenStoreOption + func WithTokenStoreGCInterval(gcInterval time.Duration) TokenStoreOption + func WithTokenStoreInitTableDisabled() TokenStoreOption + func WithTokenStoreTableName(tableName string) TokenStoreOption