mail

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfoEmail

type AccountInfoEmail struct {
	To       string
	UserName string
	Language string
	Archive  bytes.Buffer
}

type DiscountNewSpecialNotification

type DiscountNewSpecialNotification struct {
	To            string
	UserName      string
	FirstName     string
	LastName      string
	Language      string
	DiscountTitle string
	DateStart     time.Time
	DateEnd       time.Time
}

type DiscountStartUserNotification

type DiscountStartUserNotification struct {
	To            string
	UserName      string
	Language      string
	DiscountTitle string
	DateStart     time.Time
	DateEnd       time.Time
}

type Helper

type Helper struct {
	Env    *env.Env
	Config *config.MailConf
}

func New

func New(params Params) Helper

func (Helper) AccountInfoEmail

func (h Helper) AccountInfoEmail(ctx context.Context, data *AccountInfoEmail) error

func (Helper) DiscountNewSpecialNotification

func (h Helper) DiscountNewSpecialNotification(ctx context.Context, data *DiscountNewSpecialNotification) error

func (Helper) DiscountStartUserNotification

func (h Helper) DiscountStartUserNotification(ctx context.Context, data *DiscountStartUserNotification) error

type Params

type Params struct {
	fx.In

	Env    *env.Env
	Config *config.MailConf
}

Jump to

Keyboard shortcuts

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