Documentation ¶
Index ¶
- func NewAccountRepository(ctx context.Context, client redis.UniversalClient, txPipeline redis.Pipeliner) repositories.AccountRepository
- func NewContext(ctx context.Context, client redis.UniversalClient, txPipeline redis.Pipeliner) commands.CommandContext
- func NewOtpRepository(ctx context.Context, client redis.UniversalClient, txPipeline redis.Pipeliner) repositories.OtpRepository
- func NewPasswordRepository(ctx context.Context, client redis.UniversalClient, txPipeline redis.Pipeliner) repositories.PasswordRepository
- func NewUnitOfWork(r redis.UniversalClient) worker.UnitOfWork[commands.CommandContext]
- type PasswordRepositoryImpl
- func (p *PasswordRepositoryImpl) DeleteResetToken(e entities.EmailAddress) error
- func (p *PasswordRepositoryImpl) Get(e entities.EmailAddress) (*entities.PasswordDetail, error)
- func (p *PasswordRepositoryImpl) GetResetCode(e entities.EmailAddress) (string, error)
- func (p *PasswordRepositoryImpl) Save(e entities.PasswordDetail) error
- func (p *PasswordRepositoryImpl) SaveResetCode(e entities.EmailAddress, token string, ttl time.Duration) error
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 ¶
func (p *PasswordRepositoryImpl) Get(e entities.EmailAddress) (*entities.PasswordDetail, error)
Get implements repositories.PasswordRepository.
func (*PasswordRepositoryImpl) GetResetCode ¶
func (p *PasswordRepositoryImpl) GetResetCode(e entities.EmailAddress) (string, error)
func (*PasswordRepositoryImpl) Save ¶
func (p *PasswordRepositoryImpl) Save(e entities.PasswordDetail) error
Save implements repositories.PasswordRepository.
func (*PasswordRepositoryImpl) SaveResetCode ¶
func (p *PasswordRepositoryImpl) SaveResetCode(e entities.EmailAddress, token string, ttl time.Duration) error
Click to show internal directories.
Click to hide internal directories.