Versions in this module Expand all Collapse all v1 v1.1.2 Sep 16, 2021 Changes in this version + var ErrBadID = errors.New("invalid id") + var ErrBadType = errors.New("type must be client or network") + var ErrDuplicateID = errors.New("duplicate access token ID") + var ErrInvalidToken = errors.New("invalid token") + var ErrNoMatchID = errors.New("nonexisting access token ID") + type CredentialStore struct + DB dbm.DB + func NewStore(db dbm.DB) *CredentialStore + func (cs *CredentialStore) Check(id string, secret string) error + func (cs *CredentialStore) Create(id, typ string) (*Token, error) + func (cs *CredentialStore) Delete(id string) error + func (cs *CredentialStore) List() ([]*Token, error) + type Token struct + Created time.Time + ID string + Token string + Type string