notification

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 13 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

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)

Jump to

Keyboard shortcuts

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