http

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertExpiryCheck

type CertExpiryCheck struct {
	WarnWithin     config.Duration `toml:"warn_within"`
	CriticalWithin config.Duration `toml:"critical_within"`
}

type ConnectivityCheck

type ConnectivityCheck struct {
	Severity string `toml:"severity"`
}

type HttpPlugin

type HttpPlugin struct {
	config.InternalConfig
	Partials  []Partial   `toml:"partials"`
	Instances []*Instance `toml:"instances"`
}

func (*HttpPlugin) ApplyPartials

func (p *HttpPlugin) ApplyPartials() error

func (*HttpPlugin) GetInstances

func (h *HttpPlugin) GetInstances() []plugins.Instance

func (*HttpPlugin) RegisterDiagnoseTools added in v0.10.0

func (p *HttpPlugin) RegisterDiagnoseTools(registry *diagnose.ToolRegistry)

type Instance

type Instance struct {
	config.InternalConfig
	Partial string `toml:"partial"`

	Targets      []string          `toml:"targets"`
	Concurrency  int               `toml:"concurrency"`
	Connectivity ConnectivityCheck `toml:"connectivity"`
	ResponseTime ResponseTimeCheck `toml:"response_time"`
	CertExpiry   CertExpiryCheck   `toml:"cert_expiry"`
	StatusCode   StatusCodeCheck   `toml:"status_code"`
	ResponseBody ResponseBodyCheck `toml:"response_body"`

	config.HTTPConfig
	// contains filtered or unexported fields
}

func (*Instance) Gather

func (ins *Instance) Gather(q *safe.Queue[*types.Event])

func (*Instance) Init

func (ins *Instance) Init() error

type Partial

type Partial struct {
	ID          string `toml:"id"`
	Concurrency int    `toml:"concurrency"`
	config.HTTPConfig
}

type ResponseBodyCheck

type ResponseBodyCheck struct {
	ExpectSubstring string `toml:"expect_substring"`
	ExpectRegex     string `toml:"expect_regex"`
	Severity        string `toml:"severity"`
	// contains filtered or unexported fields
}

type ResponseTimeCheck

type ResponseTimeCheck struct {
	WarnGe     config.Duration `toml:"warn_ge"`
	CriticalGe config.Duration `toml:"critical_ge"`
}

type StatusCodeCheck

type StatusCodeCheck struct {
	Expect   []string `toml:"expect"`
	Severity string   `toml:"severity"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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