errreport

package
v17.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NopReporter

type NopReporter struct{}

func (NopReporter) AutoNotify

func (r NopReporter) AutoNotify(ctx context.Context)

func (NopReporter) Notify

func (r NopReporter) Notify(ctx context.Context, err error)

func (NopReporter) Recover

func (r NopReporter) Recover(ctx context.Context)

type Reporter

type Reporter interface {
	AutoNotify(context.Context)
	Recover(context.Context)
	Notify(context.Context, error)
}

Reporter is the interface that something can use to plug in and monitor panics and errors

Jump to

Keyboard shortcuts

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