Documentation
¶
Overview ¶
Package errorreporting provides a service runner module that ensures events are flushed on service shutdown.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorReporting ¶
type ErrorReporting struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Opt) *ErrorReporting
func (*ErrorReporting) Init ¶
func (er *ErrorReporting) Init() error
func (*ErrorReporting) Name ¶
func (er *ErrorReporting) Name() string
func (*ErrorReporting) Run ¶
func (er *ErrorReporting) Run() error
func (*ErrorReporting) Stop ¶
func (er *ErrorReporting) Stop() error
type ErrorReportingClient ¶
type ErrorReportingClient interface {
Close() error
}
type Opt ¶
type Opt func(*ErrorReporting)
func WithClient ¶
func WithClient(c ErrorReportingClient) Opt
Click to show internal directories.
Click to hide internal directories.