mailerreporter

package
v0.0.0-...-f5e4a23 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mailerreporter is an implementation of a Reporter that sends emails

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

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

Creator is a Creator used to get mailers

func NewCreator

func NewCreator(m mailer.Mailer) (*Creator, error)

NewCreator creates a client's creator

func (*Creator) New

func (c *Creator) New() (reporter.Reporter, error)

New returns a new mailer Reporter

type Reporter

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

Reporter represents a client used to report errors by email

func New

func New(m mailer.Mailer) (*Reporter, error)

New creates a new Mailer reporter

func (*Reporter) AddTag

func (r *Reporter) AddTag(key, value string)

AddTag attaches the provided data to the report

func (*Reporter) AddTags

func (r *Reporter) AddTags(tags map[string]string)

AddTags attaches the provided data to the report

func (*Reporter) ReportError

func (r *Reporter) ReportError(err error)

ReportError sends a report with this specific error

func (*Reporter) ReportErrorAndWait

func (r *Reporter) ReportErrorAndWait(err error)

ReportErrorAndWait sends a report with this specific error

func (*Reporter) SetUser

func (r *Reporter) SetUser(u *reporter.User)

SetUser attaches the provided user to report

Jump to

Keyboard shortcuts

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