blacklist

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL