credentials

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCredentialsIsNotPresentInCache = errors.New("credentials username is not present as a key in the cache")
)

Functions

This section is empty.

Types

type RedisClient

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

func New

func New(client *redis.Client, cfg *config.Config, log *slog.Logger) *RedisClient

func (*RedisClient) GetByUsername

func (client *RedisClient) GetByUsername(ctx context.Context, username string) (*domain.Credentials, error)

func (*RedisClient) Save

func (client *RedisClient) Save(ctx context.Context, credentials *domain.Credentials) error

Jump to

Keyboard shortcuts

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