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) ReportAsync ¶
func (c *NullReporter) ReportAsync(ctx context.Context, err error)
Click to show internal directories.
Click to hide internal directories.