Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProbeTimeout = errors.New("probe timed out")
Functions ¶
This section is empty.
Types ¶
type OptionFunc ¶ added in v3.2.0
func WithClient ¶ added in v3.2.0
func WithClient(client *http.Client) OptionFunc
WithClient returns an OptionFunc which tells the Prober to use the specified client for probing.
func WithLogger ¶ added in v3.2.0
func WithLogger(logger *log.Logger) OptionFunc
WithLogger returns an OptionFunc which tells the Prober to use the specified logger.
type Prober ¶
type Prober struct {
// contains filtered or unexported fields
}
Prober is an object that polls and http URL and returns an error if it does not return 200 Ok within the specified timeout.
Click to show internal directories.
Click to hide internal directories.