Versions in this module Expand all Collapse all v4 v4.0.2 Jul 31, 2020 v4.0.1 Jul 31, 2020 Changes in this version + type Config struct + DSN string + MaxIdleConns int + MaxLifetime time.Duration + MaxOpenConns int + func NewConfig(dsn string) *Config + type Store struct + func NewDefaultStore(config *Config) *Store + func NewStore(config *Config, tableName string, gcInterval int) *Store + func NewStoreWithDB(db *sql.DB, tableName string, gcInterval int) *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 + func (s *Store) SetStdout(stdout io.Writer) *Store + type StoreItem struct + Access string + Code string + Data string + ExpiredAt int64 + ID int64 + Refresh string Other modules containing this package github.com/aibeb/mysql