buffalo

package
v5.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Notifier *gobrake.Notifier
}

A Handler is a buffalo middleware that provides integration with Airbrake.

func New

func New(notifier *gobrake.Notifier) (*Handler, error)

New returns a new Airbrake notifier instance. Use the Handle method to wrap existing buffalo handlers.

func (*Handler) Handle

func (h *Handler) Handle(next buffalo.Handler) buffalo.Handler

Handle works as a middleware that wraps an existing buffalo.Handler and sends route performance stats

Jump to

Keyboard shortcuts

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