Documentation
¶
Index ¶
- func StandardBackOffStrategy(expFactor time.Duration, generator *rand.Rand, stdDeviation float64) strategy.Strategy
- type BytesReadSeekCloser
- type Client
- func (c *Client) Do(req *http.Request, opts ...Option) (*http.Response, error)
- func (c *Client) Get(ctx context.Context, url string, opts ...Option) (*http.Response, error)
- func (c *Client) Head(ctx context.Context, url string, opts ...Option) (*http.Response, error)
- func (c *Client) Post(ctx context.Context, url string, body io.Reader, opts ...Option) (*http.Response, error)
- type Option
- func WithRetryPolicy(requestTimeout time.Duration, maxRetries uint, strategies ...strategy.Strategy) Option
- func WithSpanCarrierInjected() Option
- func WithStandardRetryPolicy(requestTimeout time.Duration, maxRetries uint) Option
- func WithTracingOptions(enabled bool, operationName string, spanOptions ...opentracing.StartSpanOption) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BytesReadSeekCloser ¶
func NewBytesSeekReader ¶
func NewBytesSeekReader(b []byte) *BytesReadSeekCloser
func (*BytesReadSeekCloser) Close ¶
func (b *BytesReadSeekCloser) Close() error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithRetryPolicy ¶
func WithSpanCarrierInjected ¶
func WithSpanCarrierInjected() Option
func WithStandardRetryPolicy ¶
func WithTracingOptions ¶
Click to show internal directories.
Click to hide internal directories.