fxairbrake

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2018 License: MIT Imports: 7 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.

func SetLogger added in v0.15.0

func SetLogger(logger log.Logger)

SetLogger is an invokable function making gobrake to use the application logger.

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:"" split_words:"true"`
}

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