redis_repository

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenRepository

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

func NewTokenRepository

func NewTokenRepository(rdb *redis.Client) *TokenRepository

func (*TokenRepository) CreateToken

func (r *TokenRepository) CreateToken(ctx context.Context, userID string, token string) error

func (*TokenRepository) DeleteToken

func (r *TokenRepository) DeleteToken(ctx context.Context, userID string) error

func (*TokenRepository) GetToken

func (r *TokenRepository) GetToken(ctx context.Context, userID string) (string, error)

Jump to

Keyboard shortcuts

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