Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenBlacklist ¶
type TokenBlacklist struct {
// contains filtered or unexported fields
}
TokenBlacklist is a Redis based token blacklist.
func NewTokenBlacklist ¶
func NewTokenBlacklist(conn redis.Conn) *TokenBlacklist
NewTokenBlacklist returns a new token blacklist based on the provided redis connection.
func (*TokenBlacklist) BlacklistToken ¶
BlacklistToken blacklists one or more tokens by putting them onto the token blacklist. The tokens are identified by their unique token ID.
func (*TokenBlacklist) IsTokenBlacklisted ¶
IsTokenBlacklisted retrieves a token by its unique token ID and returns true if it is blacklisted.
Click to show internal directories.
Click to hide internal directories.