errorhandler

package
v0.0.0-...-1a5deed Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler interface {
	CaptureError(ctx context.Context, err error)
}

ErrorHandler is responsible for handling errors

func NewSentryErrorHandler

func NewSentryErrorHandler(options sentry.ClientOptions) (ErrorHandler, error)

NewSentryErrorHandler creates a new sentry error handler

type SentryErrorHandler

type SentryErrorHandler struct {
	// contains filtered or unexported fields
}

SentryErrorHandler implements and error handler with Sentry

func (*SentryErrorHandler) CaptureError

func (sentry *SentryErrorHandler) CaptureError(ctx context.Context, err error)

CaptureError captures an error

Jump to

Keyboard shortcuts

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