blackbox

package
v10.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blackbox

type Blackbox interface {
	// Start blackbox monitoring instance
	Start(ctx context.Context)

	// Stop blackbox monitoring instance
	Stop(w io.Writer) error
}

Blackbox is interface for blackbox monitoring

type Config

type Config struct {
	Cli              *http.Client
	ICli             appinsights.TelemetryClient
	Req              *http.Request
	Interval         time.Duration
	LogInitialErrors bool
	// contains filtered or unexported fields
}

Config defines blackbox instance configuration

func (*Config) Start

func (c *Config) Start(ctx context.Context)

Start runs black box monitor and samples data into buffer until stopped

func (*Config) Stop

func (c *Config) Stop(w io.Writer)

Stop stops blackbox instance and persists data into writer

Jump to

Keyboard shortcuts

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