redis

package
v0.0.0-...-f2baea1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteRefreshToken

func DeleteRefreshToken(refreshToken string)

func DeleteToken

func DeleteToken(token string)

func GetRefreshToken

func GetRefreshToken(refreshToken string) string

func GetToken

func GetToken(token string) string

func InitializeStore

func InitializeStore() (*RedisService, *RedisService)

InitializeStore is initializing the store service and return a store pointer

func SaveRefreshToken

func SaveRefreshToken(refreshToken, username string)

func SaveToken

func SaveToken(token, username string)

Types

type RedisService

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

RedisService is struct wrapper around raw Redis client

Jump to

Keyboard shortcuts

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