Documentation ¶
Index ¶
- func Exception(ctx context.Context, info any)
- func ExceptionWithContext(ctx context.Context, message string, context Context)
- func Message(ctx context.Context, message string)
- func MessageWithContext(ctx context.Context, message string, context Context)
- func NewContextWithReporter(ctx context.Context, reporter Reporter) context.Context
- type Context
- type NullReporter
- type Reporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExceptionWithContext ¶
func MessageWithContext ¶
Types ¶
type NullReporter ¶
type NullReporter struct{}
func (*NullReporter) ReportException ¶
func (*NullReporter) ReportException(any) error
func (*NullReporter) ReportExceptionWithContext ¶
func (*NullReporter) ReportExceptionWithContext(any, Context) error
func (*NullReporter) ReportMessage ¶
func (*NullReporter) ReportMessage(string) error
func (*NullReporter) ReportMessageWithContext ¶
func (*NullReporter) ReportMessageWithContext(string, Context) error
type Reporter ¶
type Reporter interface { ReportException(any) error ReportMessage(string) error ReportMessageWithContext(string, Context) error ReportExceptionWithContext(any, Context) error }
Reporter represents an external reporting tool which can be hooked into gluon to report key information and/or unexpected behaviors.
Directories ¶
Path | Synopsis |
---|---|
Package mock_reporter is a generated GoMock package.
|
Package mock_reporter is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.