Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResponse ¶
NewResponse create a new response.
func NoVerifyTransport ¶
NoVerifyTransport return transport that skip the certificate verification.
Types ¶
type Server ¶
Server a mock server to capture request to API.
func (*Server) SetResponse ¶
SetResponse set the response for the incoming requests. The method cached the response body value and reset the body to support
multiple times of requests.
Click to show internal directories.
Click to hide internal directories.