gotracer

package module
v1.0.0-...-aaa896c Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2015 License: Apache-2.0 Imports: 9 Imported by: 6

README

gotracer

Go Exception Catcher and Sends out Notifications

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorTemplate

func ErrorTemplate(stack *ErrorStack) string

func MakeConn

func MakeConn(settings *Tracer) *mailConn

Types

type ErrorStack

type ErrorStack struct {
	Subject   string
	Extra     string
	Traceback string
	Timestamp string
}

type Message

type Message struct {
	From    string
	To      []string
	Subject string
	Body    string
}

type Tracer

type Tracer struct {
	Dummy         bool
	EmailHost     string
	EmailPort     string
	EmailUsername string
	EmailPassword string
	EmailSender   string
	EmailFrom     string
	ErrorTo       string
}

func (Tracer) Notify

func (self Tracer) Notify(extra ...func(reason string) string)

Jump to

Keyboard shortcuts

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