email

package
v0.0.0-...-7c77cb8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

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

Report is a reporter that prints the output to email

func New

func New(conf map[string]string) *Report

New creates a new instance of Report Map fields need to include: - username: For SMTP server - password: For SMTP server - host: For SMTP server - port: For SMTP server - to: comma separated list of email addresses to send report to - from: email address this is from TODO(mattfarina): Add error handling if missing values

func (*Report) Add

func (r *Report) Add(ms string)

Add appends a message to the list of messages in the report

func (*Report) Send

func (r *Report) Send() error

Send prints the report to Stderr

Jump to

Keyboard shortcuts

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