Documentation ¶ Index ¶ func NewTelegram(controller *order.Controller, settings model.Settings, options ...Option) (service.Telegram, error) type Mail func NewMail(params MailParams) Mail func (t Mail) Notify(text string) func (t Mail) OnError(err error) func (t Mail) OnOrder(order model.Order) type MailParams type Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewTelegram ¶ func NewTelegram(controller *order.Controller, settings model.Settings, options ...Option) (service.Telegram, error) Types ¶ type Mail ¶ type Mail struct { // contains filtered or unexported fields } func NewMail ¶ func NewMail(params MailParams) Mail func (Mail) Notify ¶ func (t Mail) Notify(text string) func (Mail) OnError ¶ func (t Mail) OnError(err error) func (Mail) OnOrder ¶ func (t Mail) OnOrder(order model.Order) type MailParams ¶ type MailParams struct { SMTPServerPort int SMTPServerAddress string To string From string Password string } type Option ¶ type Option func(telegram *telegram) Source Files ¶ View all Source files mail.go telegram.go Click to show internal directories. Click to hide internal directories.