notify

package
v0.10.14 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailNotifer

type EmailNotifer struct {
	Logger *zap.Logger
	From   string
	//Receivers []string
	SMTP     SmtpSettings
	Template map[string]*EmailTmpl
	Once     sync.Once
}

func (*EmailNotifer) PostInit

func (en *EmailNotifer) PostInit() error

func (*EmailNotifer) Send

func (en *EmailNotifer) Send(tmpl string, data map[string]interface{}, attachments ...string) error

type EmailTmpl

type EmailTmpl struct {
	Subject string
	Body    string
	// Notfound string
	Receivers    []string
	CcReceivers  []string
	BccReceivers []string
	// contains filtered or unexported fields
}

type SmtpSettings

type SmtpSettings struct {
	Host     string
	Port     int
	Username string
	Password string
	Tls      bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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