airbrake

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 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 AppConfig added in v0.7.0

type AppConfig struct {
	Enabled    bool   `env:""`
	Endpoint   string `env:""`
	ProjectID  int64  `env:"project_id"`
	ProjectKey string `env:""`
}

AppConfig can be used in an application config to represent Airbrake connection details. It supports github.com/goph/nest

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