reporter

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 7 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorReporter

type ErrorReporter interface {
	Notify(id string, errContext string, err error) error
}

ErrorReporter is the interface that wraps the Notify method. ID and errContent are required parameters. If neither is provided or there is any error while attempting to report the event then an error is returned which the caller can handle as they see fit.

type ImportErrorReporter

type ImportErrorReporter struct {
	// contains filtered or unexported fields
}

ImportErrorReporter a reporter for sending error reports to the import-reporter

func NewImportErrorReporter

func NewImportErrorReporter(kafkaProducer KafkaProducer, serviceName string) (ImportErrorReporter, error)

NewImportErrorReporter create a new ImportErrorReporter to send error reports to the import-reporter

func (ImportErrorReporter) Notify

func (c ImportErrorReporter) Notify(id string, errContext string, err error) error

Notify send an error report to the import-reporter ID and errContent are required parameters. If neither is provided or there is any error while attempting to report the event then an error is returned which the caller can handle as they see fit.

type KafkaProducer

type KafkaProducer interface {
	Channels() *kafka.ProducerChannels
}

KafkaProducer interface of the dp-kafka kafka.Producer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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