Documentation ¶
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 CircuitBreaker ¶
func CircuitBreaker(name string, set circuitbreaker.Setting) OptionFunc
CircuitBreaker option for setting up a circuit breaker.
func Timeout ¶
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.
Click to show internal directories.
Click to hide internal directories.