Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailGenerator ¶
type EmailGenerator struct {
// contains filtered or unexported fields
}
EmailGenerator is the struct keeping the base config of hermes
func NewEmailGenerator ¶
func NewEmailGenerator(config *config.App) *EmailGenerator
NewEmailGenerator creates the base config of hermes
func (*EmailGenerator) GenerateConfirmEmail ¶
func (g *EmailGenerator) GenerateConfirmEmail(fullname string, link string) (string, error)
GenerateConfirmEmail generate a custom confirm email
func (*EmailGenerator) GenerateRestePasswordEmail ¶
func (g *EmailGenerator) GenerateRestePasswordEmail(fullname string, link string) (string, error)
GenerateRestePasswordEmail generate a custom reset password email
type EmailSendRequest ¶
EmailSendRequest represents a mail sending request
type Worker ¶
type Worker struct { ID int WorkerQueue chan EmailSendRequest QuitChan chan bool // contains filtered or unexported fields }
Worker is the struct maintaining worker's state
func NewSenderWorker ¶
func NewSenderWorker(workerQueue chan EmailSendRequest, config *config.Email, logger *log.Logger) *Worker
NewSenderWorker creates, and returns a new Worker object.
Click to show internal directories.
Click to hide internal directories.