errorHandler

package module
v0.0.0-...-6cc09c9 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: GPL-2.0 Imports: 5 Imported by: 0

README

errorHandler_golang - A simple error handler for go

VERY EXPLICIT Error handler with mail by mailgun support for golang

Purpose

The purpose of this error handler is, despite it's name, not to handle errors, but rather, notify admins and log, when errors occur.
The logger is VERY explicit.

What is errorHandler_golang not?

errorHandler_golang is NOT focused around speed, and is NOT going to handle hard use cases where security of the mailgun is an issue.
If you have staff on your team that should not have access to your mailgun key, etc. this software is not for you.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsError

func IsError(err error, errClass string, mgConf MailgunConf) bool

func Sendmail

func Sendmail(mgConf MailgunConf, subject string, body string)

Types

type MailgunConf

type MailgunConf struct {
	MailgunDomain    string
	PrivateAPIKey    string
	Sender           string
	Receiver         string
	LocalDescription string
}

LocalDescription is for you to set in order to describe what file or what server is actually sending the error log

Jump to

Keyboard shortcuts

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