notifications

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseLogger

func UseLogger(logger logging.Logger)

UseLogger tells the notifications package which logger to use

Types

type Mail

type Mail struct {
	Recipient string `long:"recipient" Description:"Email address to which notifications get sent"`
	Sender    string `long:"sender" Description:"Email address from which notifications get sent"`

	SMTPServer string `long:"server" Description:"SMTP server with port for sending mails"`

	SMTPSSL      bool   `long:"ssl" Description:"Whether SSL should be used or not"`
	SMTPUser     string `long:"user" Description:"User for authenticating the SMTP connection"`
	SMTPPassword string `long:"password" Description:"Password for authenticating the SMTP connection"`
}

Mail contains all values needed to be able to send a mail

func (*Mail) SendMail

func (mail *Mail) SendMail(amount int64, message string)

SendMail sends a mail

Jump to

Keyboard shortcuts

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