Documentation ¶
Index ¶
- func CheckKey(client redis.Conn, key string) (exists bool, err error)
- func GetToken(client redis.Conn, key string) (*types.ZeitToken, error)
- func SetFullToken(conn redis.Conn, key string, token *types.ZeitToken) (err error)
- func UpdateToken(conn redis.Conn, key string, attr string, val string) (err error)
- func UpdateTokenMany(conn redis.Conn, key string, token *types.ZeitToken) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFullToken ¶
SetFullToken - Save a ZeitToken under the key to Redis
func UpdateToken ¶
UpdateToken - Update one attribute of a ZeitToken in Redis
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.