Documentation ¶ Index ¶ type Blacklist func NewCacheAdapter(ttl int64) (Blacklist, error) func NewRedisAdapter(pool *redis.Pool, ttl int64) Blacklist Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Blacklist ¶ type Blacklist interface { // Add token to blacklist Add(tokenID string) error // Exists function determines if token does exist in blacklist Exists(tokenID string) bool } Blacklist interface func NewCacheAdapter ¶ func NewCacheAdapter(ttl int64) (Blacklist, error) NewCacheAdapter is a factory function func NewRedisAdapter ¶ func NewRedisAdapter(pool *redis.Pool, ttl int64) Blacklist NewRedisAdapter is a factory function Source Files ¶ View all Source files blacklist.go cache_adapter.go redis_adapter.go Click to show internal directories. Click to hide internal directories.