Documentation ¶
Index ¶
- func New(redisOptions ...RedisOptionsSetter) oauth2.TokenStore
- func NewWithClient(client *redis.Client, keyNamespaces ...string) oauth2.TokenStore
- type Options
- type RedisOptionsSetter
- func RedisAddr(addr string) RedisOptionsSetter
- func RedisDB(db int) RedisOptionsSetter
- func RedisDialTimeout(duration time.Duration) RedisOptionsSetter
- func RedisIdleCheckFrequency(duration time.Duration) RedisOptionsSetter
- func RedisIdleTimeout(duration time.Duration) RedisOptionsSetter
- func RedisKeyNamespace(keyNamespace string) RedisOptionsSetter
- func RedisLimiter(limiter redis.Limiter) RedisOptionsSetter
- func RedisMaxConnAge(duration time.Duration) RedisOptionsSetter
- func RedisMaxRetries(maxRetries int) RedisOptionsSetter
- func RedisMaxRetryBackoff(duration time.Duration) RedisOptionsSetter
- func RedisMinIdleConns(minIdleConns int) RedisOptionsSetter
- func RedisMinRetryBackoff(duration time.Duration) RedisOptionsSetter
- func RedisNetwork(network string) RedisOptionsSetter
- func RedisPassword(password string) RedisOptionsSetter
- func RedisPoolSize(poolSize int) RedisOptionsSetter
- func RedisPoolTimeout(duration time.Duration) RedisOptionsSetter
- func RedisReadTimeout(duration time.Duration) RedisOptionsSetter
- func RedisTLSConfig(config *tls.Config) RedisOptionsSetter
- func RedisUsername(user string) RedisOptionsSetter
- func RedisWriteTimeout(duration time.Duration) RedisOptionsSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(redisOptions ...RedisOptionsSetter) oauth2.TokenStore
func NewWithClient ¶
func NewWithClient(client *redis.Client, keyNamespaces ...string) oauth2.TokenStore
Types ¶
type RedisOptionsSetter ¶
type RedisOptionsSetter func(*Options)
func RedisAddr ¶
func RedisAddr(addr string) RedisOptionsSetter
func RedisDB ¶
func RedisDB(db int) RedisOptionsSetter
func RedisDialTimeout ¶
func RedisDialTimeout(duration time.Duration) RedisOptionsSetter
func RedisIdleCheckFrequency ¶
func RedisIdleCheckFrequency(duration time.Duration) RedisOptionsSetter
func RedisIdleTimeout ¶
func RedisIdleTimeout(duration time.Duration) RedisOptionsSetter
func RedisKeyNamespace ¶
func RedisKeyNamespace(keyNamespace string) RedisOptionsSetter
func RedisLimiter ¶
func RedisLimiter(limiter redis.Limiter) RedisOptionsSetter
func RedisMaxConnAge ¶
func RedisMaxConnAge(duration time.Duration) RedisOptionsSetter
func RedisMaxRetries ¶
func RedisMaxRetries(maxRetries int) RedisOptionsSetter
func RedisMaxRetryBackoff ¶
func RedisMaxRetryBackoff(duration time.Duration) RedisOptionsSetter
func RedisMinIdleConns ¶
func RedisMinIdleConns(minIdleConns int) RedisOptionsSetter
func RedisMinRetryBackoff ¶
func RedisMinRetryBackoff(duration time.Duration) RedisOptionsSetter
func RedisNetwork ¶
func RedisNetwork(network string) RedisOptionsSetter
func RedisPassword ¶
func RedisPassword(password string) RedisOptionsSetter
func RedisPoolSize ¶
func RedisPoolSize(poolSize int) RedisOptionsSetter
func RedisPoolTimeout ¶
func RedisPoolTimeout(duration time.Duration) RedisOptionsSetter
func RedisReadTimeout ¶
func RedisReadTimeout(duration time.Duration) RedisOptionsSetter
func RedisTLSConfig ¶
func RedisTLSConfig(config *tls.Config) RedisOptionsSetter
func RedisUsername ¶
func RedisUsername(user string) RedisOptionsSetter
func RedisWriteTimeout ¶
func RedisWriteTimeout(duration time.Duration) RedisOptionsSetter
Click to show internal directories.
Click to hide internal directories.