airbrake

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(config *Config, lifecycle fxt.Lifecycle) *airbrake.Handler

NewHandler returns a new Airbrake handler.

Types

type Config

type Config struct {
	ProjectID  int64
	ProjectKey string

	Host    string
	Filters []func(notice *gobrake.Notice) *gobrake.Notice
	Async   bool

	HttpClient *http.Client
}

Config holds a list of options used during the airbrake handler construction.

func NewConfig

func NewConfig(projectId int64, projectKey string) *Config

NewConfig returns a new config populated with default values.

Jump to

Keyboard shortcuts

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