Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionFunc ¶ added in v0.23.0
type OptionFunc func(*TracedClient) error
OptionFunc definition for configuring the client in a functional way.
func CircuitBreaker ¶ added in v0.23.0
func CircuitBreaker(name string, set circuitbreaker.Setting) OptionFunc
CircuitBreaker option for setting up a circuit breaker.
func Timeout ¶ added in v0.23.0
func Timeout(timeout time.Duration) OptionFunc
Timeout option for adjusting the timeout of the connection.
type TracedClient ¶
type TracedClient struct {
// contains filtered or unexported fields
}
TracedClient defines a HTTP client with tracing integrated.
func New ¶ added in v0.23.0
func New(oo ...OptionFunc) (*TracedClient, error)
New creates a new HTTP client.
Click to show internal directories.
Click to hide internal directories.