Handler is responsible for sending errors to Airbrake/Errbit.
type Handler struct {
// contains filtered or unexported fields
}
func New(projectID int64, projectKey string) *Handler
New creates a new handler.
▹ Example
func NewFromNotifier(notifier *gobrake.Notifier) *Handler
NewFromNotifier creates a new handler from a notifier instance.
▹ Example
func NewSync(projectID int64, projectKey string) *Handler
NewSync creates a new handler that sends errors synchronously.
▹ Example
func NewSyncFromNotifier(notifier *gobrake.Notifier) *Handler
NewSyncFromNotifier creates a new handler from a notifier instance that sends errors synchronously.
▹ Example
func (h *Handler) Close() error
Close closes the underlying notifier and waits for asynchronous reports to finish.
func (h *Handler) Handle(err error)
Handle sends the error to Airbrake/Errbit.