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, errors.Error)
GetNamedClientOverride() map[string]*ClientTLS
GetSchemaConfig(contentType string) (*SchemaConfig, errors.Error)
GetCaCerts() ([]string, errors.Error)
GetPeerClientKey() (string, errors.Error)
GetCryptoProvider() (string, errors.Error)
IsSystemCertPoolEnabled() bool
TimeoutOrDefault(timeoutType HTTPClientTimeoutType) time.Duration
IsPeerTLSConfigEnabled() bool
IsHeaderAllowed(name string) bool
IsKeyCacheEnabled() bool
KeyCacheRefreshInterval() 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 HTTPSnapRequest ¶ added in v0.1.5
type HTTPSnapRequest struct {
URL string // required
Headers map[string]string // required
Body string // required
NamedClient string // optional
PinSet []string // optional
}
HTTPSnapRequest is used to invoke http snap
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.