storage

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStorage

type RedisStorage struct {
	// contains filtered or unexported fields
}

RedisStorage defines struct property for redis storage

func NewRedisStorage

func NewRedisStorage(p *redis.Pool) *RedisStorage

NewRedisStorage initializes new instance of redis storage

func (*RedisStorage) GetTokenFromRedis

func (rs *RedisStorage) GetTokenFromRedis() (string, error)

GetTokenFromRedis will retrieve jwt token from redis

func (*RedisStorage) SaveTokenToRedis

func (rs *RedisStorage) SaveTokenToRedis(token string, ttl int64) error

SaveTokenToRedis will save jwt token to redis

Jump to

Keyboard shortcuts

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