Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentOutputLevel = INFO
View Source
var DnsWaiter = &RetryWaiter{
Check: checkDns,
}
View Source
var HttpWaiter = &RetryWaiter{
Check: checkHttp,
}
View Source
var TcpWaiter = &RetryWaiter{
Check: checkTcp,
}
Functions ¶
Types ¶
type Config ¶ added in v0.4.0
type Config struct { Timeout time.Duration PerAttemptTimeout *time.Duration // Limits number of attempts. 0 means unlimited. Attempts uint RetryDelay *time.Duration RetryMaxDelay *time.Duration }
func DefaultConfig ¶ added in v0.4.0
func DefaultConfig() Config
type LogWaiterDecorator ¶
type LogWaiterDecorator struct {
// contains filtered or unexported fields
}
LogWaiterDecorator wraps a NetWaiter and adds logging around Wait()
type RetryWaiter ¶ added in v0.4.0
RetryWaiter is a generic NetWaiter that retries a check on error until the context deadline expires
Click to show internal directories.
Click to hide internal directories.