notification

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail deprecated

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

Mail notifies the orders and errors of the bot by e-mail.

Deprecated: no agent nor the controller uses it. Kept until its removal is decided.

func NewMail deprecated

func NewMail(params MailParams) Mail

NewMail returns a Mail sending with params.

Deprecated: see 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 deprecated

type MailParams struct {
	SMTPServerPort    int
	SMTPServerAddress string

	To       string
	From     string
	Password string
}

MailParams are the SMTP server and the addresses of a Mail.

Deprecated: see Mail.

Jump to

Keyboard shortcuts

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