Versions in this module Expand all Collapse all v0 v0.14.2 Feb 27, 2018 Changes in this version + type TokenAuth struct + func (TokenAuth) AddRecord(uid types.Uid, secret []byte, lifetime time.Duration) (int, auth.AuthErr) + func (TokenAuth) IsUnique(token []byte) (bool, auth.AuthErr) + func (TokenAuth) UpdateRecord(uid types.Uid, secret []byte, lifetime time.Duration) auth.AuthErr + func (ta *TokenAuth) Authenticate(token []byte) (types.Uid, int, time.Time, auth.AuthErr) + func (ta *TokenAuth) GenSecret(uid types.Uid, authLvl int, lifetime time.Duration) ([]byte, time.Time, auth.AuthErr) + func (ta *TokenAuth) Init(jsonconf string) error