Documentation ¶
Index ¶
- type EndpointHandler
- func (h *EndpointHandler) GetFakeHandler(endpoint string) *fakes.FakeHandler
- func (h *EndpointHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (h *EndpointHandler) StubEndpoint(endpoint string, handler *fakes.FakeHandler)
- func (h *EndpointHandler) StubEndpointWithStatus(endpoint string, statusCode int, responseText ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointHandler ¶
type EndpointHandler struct {
// contains filtered or unexported fields
}
func NewEndpointHandler ¶
func NewEndpointHandler() *EndpointHandler
func (*EndpointHandler) GetFakeHandler ¶
func (h *EndpointHandler) GetFakeHandler(endpoint string) *fakes.FakeHandler
func (*EndpointHandler) ServeHTTP ¶
func (h *EndpointHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
func (*EndpointHandler) StubEndpoint ¶
func (h *EndpointHandler) StubEndpoint(endpoint string, handler *fakes.FakeHandler)
func (*EndpointHandler) StubEndpointWithStatus ¶
func (h *EndpointHandler) StubEndpointWithStatus(endpoint string, statusCode int, responseText ...string)
Click to show internal directories.
Click to hide internal directories.