errorhandler

package
v0.0.0-...-8fa2440 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: MIT Imports: 20 Imported by: 1

Documentation

Overview

Package errorhandler provides a panic handler for HTTP requests which serves an error notice and optionally sends e. mail.

Configurables:

'panicsto'          E. mail address to send panics to.
                    "" (default): don't send e. mails.

'webmasteraddress'  Webmaster e. mail address, shown in error notices.
                    "" (default): don't show webmaster e. mail address.

Measurables:

'web.errorResponsesIssued'     Counter. Counts number of panics that the error handler
                               has caught.

Index

Constants

This section is empty.

Variables

View Source
var ErrorEncryptionKey = [32]byte{47, 10, 181, 208, 144, 131, 217, 3, 142, 89, 158, 11, 133, 223, 34, 122, 231, 78, 10, 89, 77, 176, 202, 157, 164, 26, 2, 243, 3, 11, 187, 218}

Generic, insecure encryption key. To be changed by specific initializers.

Functions

func Handler

func Handler(h http.Handler) http.Handler

The error handling HTTP handler, wrapping an inner handler for which panics are handled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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