Versions in this module Expand all Collapse all v1 v1.0.1 Apr 25, 2018 v1.0.0 Sep 21, 2016 Changes in this version + func NewTokenStore(cfg *Config, tcfgs ...*TokenConfig) (store oauth2.TokenStore, err error) + type Config struct + DB string + URL string + func NewConfig(url, db string) *Config + type TokenConfig struct + AccessCName string + BasicCName string + RefreshCName string + TxnCName string + func NewDefaultTokenConfig() *TokenConfig + type TokenStore struct + func (ts *TokenStore) Create(info oauth2.TokenInfo) (err error) + func (ts *TokenStore) GetByAccess(access string) (ti oauth2.TokenInfo, err error) + func (ts *TokenStore) GetByCode(code string) (ti oauth2.TokenInfo, err error) + func (ts *TokenStore) GetByRefresh(refresh string) (ti oauth2.TokenInfo, err error) + func (ts *TokenStore) RemoveByAccess(access string) (err error) + func (ts *TokenStore) RemoveByCode(code string) (err error) + func (ts *TokenStore) RemoveByRefresh(refresh string) (err error) Incompatible versions in this module v3.1.0+incompatible Dec 19, 2019 v3.0.0+incompatible Sep 14, 2018