Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthTransport ¶
type BasicAuthTransport struct {
Transport http.RoundTripper
Username string
Password string
}
BasicAuthTransport is the struct to add basic auth to a RoundTripper.
type Config ¶
type Config struct {
Name string `yaml:"name"`
URL string `yaml:"url"`
Method string `yaml:"method"`
Body string `yaml:"body"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Token string `yaml:"token"`
Insecure bool `yaml:"insecure"`
Notification bool `yaml:"notification"`
NotificationThreshold time.Duration `yaml:"notificationThreshold"`
Interval time.Duration `yaml:"interval"`
Timeout time.Duration `yaml:"timeout"`
}
type Result ¶
type Result struct {
StatusCode int
DNSLookup time.Duration
TCPConnection time.Duration
TLSHandshake time.Duration
ServerProcessing time.Duration
ContentTransfer time.Duration
NameLookup time.Duration
Connect time.Duration
Pretransfer time.Duration
StartTransfer time.Duration
Total time.Duration
// contains filtered or unexported fields
}
type TokenAuthTransporter ¶
type TokenAuthTransporter struct {
Transport http.RoundTripper
Token string
}
TokenAuthTransporter is the struct to add token auth to a RoundTripper.
Click to show internal directories.
Click to hide internal directories.