monitor

package
v0.0.0-...-0f0f3a0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedMonitor

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

func Combine

func Combine(monitors ...Monitor) *CombinedMonitor

func (*CombinedMonitor) Add

func (c *CombinedMonitor) Add(m Monitor)

func (*CombinedMonitor) Err

func (c *CombinedMonitor) Err(err error)

func (*CombinedMonitor) HTTPEvent

func (c *CombinedMonitor) HTTPEvent(e event.HTTP)

type Monitor

type Monitor interface {
	HTTPEvent(e event.HTTP)
	Err(err error)
}

func NewConsoleMonitor

func NewConsoleMonitor(target string) Monitor

func NewCurlRequestMonitor

func NewCurlRequestMonitor(target string) Monitor

func NewCurlRequestMonitorW

func NewCurlRequestMonitorW(target string, output io.Writer) Monitor

func NewStdErrMonitor

func NewStdErrMonitor() Monitor

type NopMonitor

type NopMonitor struct{}

func (NopMonitor) Err

func (n NopMonitor) Err(error)

func (NopMonitor) HTTPEvent

func (n NopMonitor) HTTPEvent(event.HTTP)

Jump to

Keyboard shortcuts

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