adapters

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alarm

func Alarm(config *AlarmConfig) core.OnReportHandler

func FileReportLogger

func FileReportLogger(config *ReportLogConfig, name string) core.OnReportHandler

func LocalFileExporter

func LocalFileExporter(baseDir string, enableMeta bool) core.OnDownloadHandler

func OnDownloadPathSuffixFilter

func OnDownloadPathSuffixFilter(handler core.OnDownloadHandler, suffixes ...string) core.OnDownloadHandler

func ReportLogger

func ReportLogger(config *ReportLogConfig, w io.Writer) core.OnReportHandler

Types

type AlarmConfig

type AlarmConfig struct {
	OnAlarm                       core.OnReportHandler
	OnRecover                     core.OnReportHandler
	Window                        int
	AlarmIfErrorGreaterThanEqual  int
	RecoverIfInfoGreaterThanEqual int
}

type ReportLogConfig

type ReportLogConfig struct {
	// Flag is log flag defined standard log package.
	// When JSON option is true, this option is ignored.
	Flag int
	// Summary represents whether to output summary line.
	// When JSON option is true, this option is ignored.
	Summary  bool
	JSON     bool
	Severity core.Severity
}

Jump to

Keyboard shortcuts

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