package
0.0.0-20200122233423-62801f1d34cf
Repository: https://github.com/vishvananda/pkg.git
Documentation: pkg.go.dev

# Functions

DefaultErrorRetryChecker implements the defaults for retrying on error.
New returns a SpoofingClient that rewrites requests if the target domain is not `resolvable`.
ResolveEndpoint resolves the endpoint address considering whether the domain is resolvable and taking into account whether the user overrode the endpoint address externally.

# Constants

RequestTimeout is the default timeout for the polling requests.

# Structs

Response is a stripped down subset of http.Response.
SpoofingClient is a minimal HTTP client wrapper that spoofs the domain of requests for non-resolvable domains.

# Interfaces

Interface defines the actions that can be performed by the spoofing client.

# Type aliases

ErrorRetryChecker is used to determine if an error should be retried or not.
ResponseChecker is used to determine when SpoofinClient.Poll is done polling.
TransportOption allows callers to customize the http.Transport used by a SpoofingClient.