apm

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConsoleReporter

func SetConsoleReporter()

func SetNullReporter

func SetNullReporter()

Types

type ConsoleReporter

type ConsoleReporter struct{}

func (*ConsoleReporter) Report

func (c *ConsoleReporter) Report(ctx context.Context, err error) error

func (*ConsoleReporter) ReportAsync

func (c *ConsoleReporter) ReportAsync(ctx context.Context, err error)

type ErrorReporting

type ErrorReporting interface {
	Report(ctx context.Context, err error) error
	ReportAsync(ctx context.Context, err error)
}
var GlobalReporter ErrorReporting

func NewConsoleReporter

func NewConsoleReporter() ErrorReporting

func NewNullReporter

func NewNullReporter() ErrorReporting

type NullReporter

type NullReporter struct{}

func (*NullReporter) Report

func (c *NullReporter) Report(ctx context.Context, err error) error

func (*NullReporter) ReportAsync

func (c *NullReporter) ReportAsync(ctx context.Context, err error)

Jump to

Keyboard shortcuts

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