reporter

package
v0.1.3-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReporter

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

func (*FileReporter) ReportEvent

func (f *FileReporter) ReportEvent(ctx context.Context, event *optimusv1.LogEvent, status string) error

type HttpReporter

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

func NewHTTPReporter

func NewHTTPReporter(url string) *HttpReporter

func (*HttpReporter) ReportEvent

func (h *HttpReporter) ReportEvent(ctx context.Context, event *optimusv1.LogEvent, status string) error

type ReporterInterface

type ReporterInterface interface {
	ReportEvent(ctx context.Context, event *optimusv1.LogEvent, status string) error
}

type SqliteReporter

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

func (*SqliteReporter) ReportEvent

func (s *SqliteReporter) ReportEvent(ctx context.Context, event *optimusv1.LogEvent, status string) error

Jump to

Keyboard shortcuts

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