Versions in this module Expand all Collapse all v1 v1.3.0 Mar 1, 2020 Changes in this version + type ClientStore struct + func NewClientStore(adapter pgadapter.Adapter, 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 []byte + Domain string + ID string + Secret string + type ClientStoreOption func(s *ClientStore) + func WithClientStoreInitTableDisabled() ClientStoreOption + func WithClientStoreLogger(logger Logger) ClientStoreOption + func WithClientStoreTableName(tableName string) ClientStoreOption + type Logger interface + Printf func(format string, v ...interface{}) + type TokenStore struct + func NewTokenStore(adapter pgadapter.Adapter, 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 []byte + ExpiresAt time.Time + ID int64 + Refresh string + type TokenStoreOption func(s *TokenStore) + func WithTokenStoreGCDisabled() TokenStoreOption + func WithTokenStoreGCInterval(gcInterval time.Duration) TokenStoreOption + func WithTokenStoreInitTableDisabled() TokenStoreOption + func WithTokenStoreLogger(logger Logger) TokenStoreOption + func WithTokenStoreTableName(tableName string) TokenStoreOption Other modules containing this package github.com/vgarvardt/go-oauth2-pg/v3 github.com/vgarvardt/go-oauth2-pg/v4