notification

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 added in v0.0.4

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

func NewMail added in v0.0.4

func NewMail(params MailParams) Mail

func (Mail) Notify added in v0.0.4

func (t Mail) Notify(text string)

func (Mail) OnOrder added in v0.0.4

func (t Mail) OnOrder(order model.Order)

func (Mail) OrError added in v0.0.4

func (t Mail) OrError(err error)

type MailParams added in v0.0.4

type MailParams struct {
	SMTPServerPort    int
	SMTPServerAddress string

	To       string
	From     string
	Password string
}

type Option added in v0.0.6

type Option func(telegram *telegram)

Jump to

Keyboard shortcuts

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