Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequiresParameters ¶
RequiresParameters returns true if the backend requires config parameters
Types ¶
type Cache ¶
type Cache interface { Init() error Add(key string, data interface{}) error Get(key string, output interface{}) error Del(key string) error Exists(key string) (bool, error) }
Cache stores the state of the OAuth2 flow.
func NewFromArgs ¶
NewFromArgs creates a new cache backend from the supplied arguments
type Memcached ¶
type Memcached struct { Servers []string // contains filtered or unexported fields }
Memcached implements StateManager interface using memcached as backend.
func NewMemcachedCache ¶
NewMemcachedCache creates a new key manager using the specified servers.
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is a state store that stores state in memory on the current process.
type Redis ¶
type Redis struct { Servers []string // contains filtered or unexported fields }
Redis implements StateManager interface using redis as backend.
func NewRedisCache ¶
NewRedisCache creates a new key manager using the specified servers.
Click to show internal directories.
Click to hide internal directories.