notifications

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 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)

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"`
}

func (*Mail) SendMail

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

Jump to

Keyboard shortcuts

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