Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface {
GetConfigPath(path string) string
GetClientCert() string
GetClientKey() (string, error)
GetNamedClientOverride() (map[string]*ClientTLS, error)
GetSchemaConfig(contentType string) (*SchemaConfig, error)
GetCaCerts() []string
IsSystemCertPoolEnabled() bool
TimeoutOrDefault(timeoutType HTTPClientTimeoutType) time.Duration
}
Config configuration interface
type HTTPClientTimeoutType ¶ added in v0.1.4
type HTTPClientTimeoutType int
HTTPClientTimeoutType enumerates the different types of timeouts used by http client
const ( Global HTTPClientTimeoutType = iota TransportTLSHandshake TransportResponseHeader TransportExpectContinue TransportIdleConn DialerTimeout DialerKeepAlive )
Timeouts used by HTTP client
type SchemaConfig ¶
type SchemaConfig struct {
// Content type
Type string
// Request schema
Request string
// Response schema
Response string
}
SchemaConfig defines request and response schemas for content type
Click to show internal directories.
Click to hide internal directories.