Versions in this module Expand all Collapse all v0 v0.1.0 Sep 30, 2022 Changes in this version + func MustMarshal(v interface{}) []byte + func NewMockedHTTPClient(options ...MockBackendOption) *http.Client + func WriteError(w http.ResponseWriter, httpStatus int, msg string) + type EndpointPattern struct + Method string + Pattern string + var PostIssue EndpointPattern = EndpointPattern{ ... } + type EnforceHostRoundTripper struct + Host string + UpstreamRoundTripper http.RoundTripper + func (efrt *EnforceHostRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) + type FIFOReponseHandler struct + CurrentIndex int + Responses [][]byte + func (srh *FIFOReponseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type MockBackendOption func(*mux.Router) + func WithRequestMatch(ep EndpointPattern, responsesFIFO ...interface{}) MockBackendOption + func WithRequestMatchHandler(ep EndpointPattern, handler http.Handler) MockBackendOption