lnroll

package module
v0.0.0-...-3a77e62 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: BSD-2-Clause Imports: 7 Imported by: 0

README

ln-roll

This is a simple ln filter for sending errors to Rollbar.

New should take a Client as defined in filter.go. stvp/roll should satisfy this.

(c) 2016, Andrew Gwozdziewycz, BSD Licensed. See LICENSE for more info.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client Client) ln.FilterFunc

New returns a new FilterFunc which reports errors to Rollbar.

Types

type Client

type Client interface {
	Critical(err error, extras map[string]string) (uuid string, e error)
	CriticalStack(err error, ptrs []uintptr, custom map[string]string) (uuid string, e error)
	Error(err error, extras map[string]string) (uuid string, e error)
	ErrorStack(err error, ptrs []uintptr, custom map[string]string) (uuid string, e error)
}

Jump to

Keyboard shortcuts

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