Versions in this module Expand all Collapse all v0 v0.1.0 Feb 23, 2023 Changes in this version + func DelAllForUid(ctx context.Context, uid string) + func DelClientIdForUid(ctx context.Context, uid string, clientId string) + type DB struct + func Find(ctx context.Context, uid string, clientId string) (db *DB, ok bool) + func FindAll(ctx context.Context, uid string) []*DB + func New(ctx context.Context, suggestedToken string) *DB + func (db *DB) Del() + func (db *DB) IsValidToken() bool + func (db *DB) LastTime() time.Time + func (db *DB) OverWrite(value *Value) + func (db *DB) RealToken() string + func (db *DB) RefreshTTL() + func (db *DB) RefreshTTLAndLastTime(lastTime time.Time) + func (db *DB) RefreshTTLto(ttl time.Duration) + func (db *DB) Session() string + func (db *DB) SetOrUseOld(value *Value) + func (db *DB) TTL() (ttl time.Duration) + func (db *DB) Uid() (uid string, ok bool) + func (db *DB) Value() (value *Value, ok bool) + type Value struct + ClientId string + LatestTime time.Time + Session string + Uid string