Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { StatusCode int CallCount int Error error RequestBodies []string Requests []*http.Request // contains filtered or unexported fields }
func NewFakeClient ¶
func NewFakeClient() (fakeClient *FakeClient)
func (*FakeClient) AddDoBehavior ¶
func (c *FakeClient) AddDoBehavior(resp *http.Response, err error)
func (*FakeClient) SetMessage ¶
func (c *FakeClient) SetMessage(message string)
func (*FakeClient) SetNilResponse ¶
func (c *FakeClient) SetNilResponse()
type FakeRequestRetryable ¶
type FakeRequestRetryable struct { AttemptCalled int // contains filtered or unexported fields }
func NewFakeRequestRetryable ¶
func NewFakeRequestRetryable() *FakeRequestRetryable
func (*FakeRequestRetryable) AddAttemptBehavior ¶
func (r *FakeRequestRetryable) AddAttemptBehavior(response *http.Response, isRetryable bool, err error)
func (*FakeRequestRetryable) Attempt ¶
func (r *FakeRequestRetryable) Attempt() (bool, error)
func (*FakeRequestRetryable) Response ¶
func (r *FakeRequestRetryable) Response() *http.Response
Click to show internal directories.
Click to hide internal directories.