report

package
v0.0.0-...-3f826ee Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package report contains error reporting functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error, tags map[string]string)

Check will see if err contains an error; if it does, and if reporting is configured, it will report the error.

func Init

func Init(cfg *config.Config)

func Recover

func Recover(fn func())

Recover will wrap the function in a manner that will capture panics. If error reporting isn't active, it will just panic. This default behaviour allows the stack trace to be capture in the system logs and the service management system (e.g. systemd) to automatically restart the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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