Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlackboxHTTP ¶
type BlackboxHTTP struct {
}
func (*BlackboxHTTP) ParseConfig ¶
func (p *BlackboxHTTP) ParseConfig(baseDir string, bs []byte) (any, error)
type Global ¶
type Global struct {
Namespace string `toml:"namespace"`
Timeout time.Duration `toml:"timeout"`
Method string `toml:"method"`
Payload string `toml:"payload"`
BasicAuthUser string `toml:"basic_auth_user"`
BasicAuthPass string `toml:"basic_auth_pass"`
Headers []string `toml:"headers"`
ProxyURL string `toml:"proxy_url"`
clienttls.ClientConfig
ExpectedStatusCodes []int `toml:"expected_status_codes"`
ExpectedBodyRegexp string `toml:"expected_body_regexp"`
ExpectedBodyRegexpCompiled *regexp.Regexp `toml:"-"`
}
Click to show internal directories.
Click to hide internal directories.