# Functions
DoRequest is based on a http.NewRequest and makes it easy to also add the query parameters and test an actual request.
MockServer takes any mock or mock-able microservice and creates a mock http.Server and a Mock structure to aggregate all the mocked methods together.
NewErr creates a micro-test error struct and returns the and returns an Err struct being pointed to.
NewMockServer takes any mock or mock-able microservice and creates a mock http.Server and a Mock structure to aggregate all the mocked methods together.
NewRequest is based on a httptest.NewRequest and makes it easy to also add the query parameters.
ReadRecorder reads the recorder to get the response and decodes the body to a slice of bytes.
# Structs
Err is set defined structure for representing errors.
Exchange is a Request / Response pair as defined by the IETF RFC2616 https://datatracker.ietf.org/doc/html/rfc2616#section-1.4 between two servers when using HTTP.
Mock server structure that groups the URL to which the mock server should connect, the mock server itself, the series of exchanges as defined by an Exchange and a counter to count the number of transmissions that have occurred.
Response contains the basic fields required to mock a response to be expected to be sent back from any microservice.