Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundTripper ¶
RoundTripper is a custom, mock http.RoundTripper used for testing and mocking purposes ONLY.
func NewMockRoundTripper ¶
func NewMockRoundTripper(roundTripFunc func(req *http.Request) (*http.Response, error)) *RoundTripper
NewMockRoundTripper returns a new RoundTripper which will execut the given roundTripFunc provided by the caller
Click to show internal directories.
Click to hide internal directories.