Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBytesReadCloser ¶
func NewBytesReadCloser(content []byte) io.ReadCloser
func NewStringReadCloser ¶
func NewStringReadCloser(content string) io.ReadCloser
func ReadAndClose ¶
func ReadAndClose(body io.ReadCloser) ([]byte, error)
Types ¶
type AttemptRetryStrategy ¶
type AttemptRetryStrategy struct {
// contains filtered or unexported fields
}
func (*AttemptRetryStrategy) NewRetryHandler ¶
func (a *AttemptRetryStrategy) NewRetryHandler() RetryHandler
type RetryHandler ¶
func NewAttemptRetryHandler ¶
func NewAttemptRetryHandler(maxAttempts uint) RetryHandler
type RetryStrategy ¶
type RetryStrategy interface {
NewRetryHandler() RetryHandler
}
func NewAttemptRetryStrategy ¶
func NewAttemptRetryStrategy(maxAttempts uint) RetryStrategy
Source Files ¶
Click to show internal directories.
Click to hide internal directories.