userrepository

package
v0.0.0-...-fd201ba Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTOTPCache

type MockTOTPCache struct {
	mock.Mock
}

func (*MockTOTPCache) Get

func (r *MockTOTPCache) Get(ctx context.Context, key string) (string, error)

func (*MockTOTPCache) Set

func (r *MockTOTPCache) Set(ctx context.Context, key string, value string) error

type TOTPCacheRepository

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

func NewTOTPCache

func NewTOTPCache(log logger.Logger, conf config.Config, driver *redis.Client) *TOTPCacheRepository

func (TOTPCacheRepository) Get

func (TOTPCacheRepository) Set

func (r TOTPCacheRepository) Set(ctx context.Context, key string, value string) error

Jump to

Keyboard shortcuts

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