Documentation
¶
Overview ¶
Package http provides a client with included tracing capabilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionFunc ¶
type OptionFunc func(*TracedClient) error
OptionFunc definition for configuring the client in a functional way.
func WithCheckRedirect ¶ added in v0.74.0
WithCheckRedirect option for setting the WithCheckRedirect for the client.
func WithCircuitBreaker ¶ added in v0.74.0
func WithCircuitBreaker(name string, set circuitbreaker.Setting) OptionFunc
WithCircuitBreaker option for setting up a circuit breaker.
func WithTimeout ¶ added in v0.74.0
func WithTimeout(timeout time.Duration) OptionFunc
WithTimeout option for adjusting the timeout of the connection.
func WithTransport ¶ added in v0.74.0
func WithTransport(rt http.RoundTripper) OptionFunc
WithTransport option for setting the WithTransport for the client.
type TracedClient ¶
type TracedClient struct {
// contains filtered or unexported fields
}
TracedClient defines an HTTP client with tracing integrated.
Click to show internal directories.
Click to hide internal directories.