emailLogic

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchEmailLogic added in v1.0.4

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

func NewBatchEmailLogic added in v1.0.4

func NewBatchEmailLogic(deps Dependencies) *BatchEmailLogic

func (*BatchEmailLogic) ProcessTask added in v1.0.4

func (l *BatchEmailLogic) ProcessTask(ctx context.Context, task *asynq.Task) error

type Dependencies added in v1.19.0

type Dependencies struct {
	Store    repository.Store
	Queue    TaskScheduler
	Email    func() config.EmailConfig
	SiteName func() string
}

type ErrorInfo added in v1.0.4

type ErrorInfo struct {
	Error string `json:"error"`
	Email string `json:"email"`
	Time  int64  `json:"time"`
}

type SendEmailLogic

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

func NewSendEmailLogic

func NewSendEmailLogic(deps Dependencies) *SendEmailLogic

func (*SendEmailLogic) ProcessTask

func (l *SendEmailLogic) ProcessTask(ctx context.Context, task *asynq.Task) error

type TaskScheduler added in v1.19.0

type TaskScheduler interface {
	EnqueueContext(ctx context.Context, task *asynq.Task, opts ...asynq.Option) (*asynq.TaskInfo, error)
}

Jump to

Keyboard shortcuts

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