Documentation ¶
Index ¶
- func DelAllForUid(ctx context.Context, uid string)
- func DelClientIdForUid(ctx context.Context, uid string, clientId string)
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelAllForUid ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) IsValidToken ¶
func (*DB) RefreshTTL ¶
func (db *DB) RefreshTTL()
func (*DB) RefreshTTLAndLastTime ¶
func (*DB) RefreshTTLto ¶
func (*DB) SetOrUseOld ¶
Click to show internal directories.
Click to hide internal directories.