errorreporting

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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