report

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReport

func NewReport(lg *zap.Logger, exceptionCh chan conn.Exception, connCreator BackendConnCreator) *report

func NewReportDB

func NewReportDB(lg *zap.Logger, connCreator BackendConnCreator) *reportDB

Types

type BackendConnCreator

type BackendConnCreator func() conn.BackendConn

type Report

type Report interface {
	Start(ctx context.Context, cfg ReportConfig) error
	Close()
}

type ReportConfig

type ReportConfig struct {
	TlsConfig *tls.Config
	// contains filtered or unexported fields
}

func (*ReportConfig) Validate

func (cfg *ReportConfig) Validate() error

type ReportDB

type ReportDB interface {
	Init(ctx context.Context) error
	InsertExceptions(tp conn.ExceptionType, m map[string]*expCollection) error
	Close()
}

Jump to

Keyboard shortcuts

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