Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
NewHTTPClient creates a http.Client and an url.URL for the given HTTP endpoint
Types ¶
type ClientCertificateFilePair ¶
ClientCertificateFilePair is a struct with a certificate and a key pair
type HTTPEndpoint ¶
type HTTPEndpoint struct {
Host string
Port int
Timeout time.Duration
EnvPrefix string
RootCAFile string
ClientCertificateFiles ClientCertificateFilePair
PinnedKey string
InsecureSkipValidation bool
MaxIdleConnsPerHost int
DisableCompression bool
}
HTTPEndpoint is a struct for specifying which parameters to use when connecting to a HTTP(S) endpoint
Click to show internal directories.
Click to hide internal directories.