notifiers

package
v0.0.0-...-8f634b9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailPayload

type EmailPayload struct {
	From string
	To   []string
	Msg  *Msg
}

type Msg

type Msg struct {
	Subject string
	Body    string
}

type SmptpPayload

type SmptpPayload struct {
	From string
	To   []string
	// contains filtered or unexported fields
}

func NewSmtpPayload

func NewSmtpPayload(from string, to ...string) *SmptpPayload

func (*SmptpPayload) Msg

func (pl *SmptpPayload) Msg() []byte

func (*SmptpPayload) SetMsg

func (pl *SmptpPayload) SetMsg(subject, body string)

type SmtpMsg

type SmtpMsg struct {
	Subject string
	Body    string
}

func (*SmtpMsg) String

func (msg *SmtpMsg) String() string

type SmtpNotifier

type SmtpNotifier struct {
	Identity       string
	Username       string
	Password       string
	Server_Address string
	Host           string
}

func (*SmtpNotifier) Auth

func (esmtp *SmtpNotifier) Auth() (auth smtp.Auth)

func (SmtpNotifier) Send

func (esmtp SmtpNotifier) Send(payload any) error

Jump to

Keyboard shortcuts

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