clients

package
v0.0.0-...-cfcff58 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClientDB

type RedisClientDB interface {
	Set(ctx context.Context, userId string, jwt *models.JwtCustom, duration time.Duration) error
	Get(ctx context.Context, userId string) (jwt *models.JwtCustom, err error)
}

func NewRedisClient

func NewRedisClient(client *redis.Client, settings *settings.Config) RedisClientDB

type RedisClientDBImp

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

func (*RedisClientDBImp) Get

func (r *RedisClientDBImp) Get(ctx context.Context, userId string) (*models.JwtCustom, error)

func (*RedisClientDBImp) Set

func (r *RedisClientDBImp) Set(ctx context.Context, userId string, jwt *models.JwtCustom, duration time.Duration) error

Jump to

Keyboard shortcuts

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