Documentation ¶
Index ¶
- func ConfigureHTTPTransports(clientConf httphandlerConfig.Client) (http.RoundTripper, error)
- type DefinitionError
- type Matcher
- func (m *Matcher) RoundTrip(request *http.Request) (response *http.Response, err error)
- func (m *Matcher) SelectTransportDefinition(method, path, queryParams string, log log.Logger) (matchedTransport config.TransportMatcherDefinition, err error)
- func (m *Matcher) SelectTransportRoundTripper(request *http.Request) (selectedRoundTripper http.RoundTripper, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureHTTPTransports ¶
func ConfigureHTTPTransports(clientConf httphandlerConfig.Client) (http.RoundTripper, error)
ConfigureHTTPTransports returns RoundTrippers mapped by transport name from configuration
Types ¶
type DefinitionError ¶
type DefinitionError struct {
// contains filtered or unexported fields
}
DefinitionError properties for Transports
type Matcher ¶
type Matcher struct { RoundTrippers map[string]http.RoundTripper TransportsConfig config.Transports }
Matcher mapping initialized Transports with http.RoundTripper by transport name
func (*Matcher) SelectTransportDefinition ¶
func (m *Matcher) SelectTransportDefinition(method, path, queryParams string, log log.Logger) (matchedTransport config.TransportMatcherDefinition, err error)
SelectTransportDefinition returns transport instance by method, path and queryParams
func (*Matcher) SelectTransportRoundTripper ¶
func (m *Matcher) SelectTransportRoundTripper(request *http.Request) (selectedRoundTripper http.RoundTripper, err error)
SelectTransportRoundTripper for selecting RoundTripper by request object from transports matcher
Click to show internal directories.
Click to hide internal directories.