Documentation
¶
Index ¶
- func BlockedProfile(redisCli *redis.Client, profileID string, duration time.Duration) error
- func ClearAuthToken(redisCli *redis.Client, uid string) error
- func IsAuthTokenExist(redisCli *redis.Client, uid string) (bool, error)
- func IsAuthTokenSame(redisCli *redis.Client, uid, token string) (bool, error)
- func IsBlocked(redisCli *redis.Client, profileID string) (bool, error)
- func NewBlockListKey(uid string) (key.Key, error)
- func NewTokenKey(token string) (key.Key, error)
- func SaveAuthToken(redisCli *redis.Client, uid, token string, duration time.Duration) error
- func UnBlockedProfile(redisCli *redis.Client, profileID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockedProfile ¶
func ClearAuthToken ¶
func IsAuthTokenExist ¶
func IsAuthTokenSame ¶
func SaveAuthToken ¶
func UnBlockedProfile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.