redis

package
v0.0.0-...-a869338 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountRepository

func NewAccountRepository(ctx context.Context, client redis.UniversalClient, txPipeline redis.Pipeliner) repositories.AccountRepository

func NewContext

func NewContext(ctx context.Context, client redis.UniversalClient, txPipeline redis.Pipeliner) commands.CommandContext

func NewOtpRepository

func NewOtpRepository(ctx context.Context, client redis.UniversalClient, txPipeline redis.Pipeliner) repositories.OtpRepository

func NewPasswordRepository

func NewPasswordRepository(ctx context.Context, client redis.UniversalClient, txPipeline redis.Pipeliner) repositories.PasswordRepository

func NewUnitOfWork

func NewUnitOfWork(r redis.UniversalClient) worker.UnitOfWork[commands.CommandContext]

Types

type PasswordRepositoryImpl

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

func (*PasswordRepositoryImpl) DeleteResetToken

func (p *PasswordRepositoryImpl) DeleteResetToken(e entities.EmailAddress) error

DeleteResetToken implements repositories.PasswordRepository.

func (*PasswordRepositoryImpl) Get

Get implements repositories.PasswordRepository.

func (*PasswordRepositoryImpl) GetResetCode

func (*PasswordRepositoryImpl) Save

Save implements repositories.PasswordRepository.

func (*PasswordRepositoryImpl) SaveResetCode

func (p *PasswordRepositoryImpl) SaveResetCode(e entities.EmailAddress, token string, ttl time.Duration) error

Jump to

Keyboard shortcuts

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