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
Click to show internal directories.
Click to hide internal directories.