Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeHandler ¶
type FakeHandler struct {
RequestReceived *http.Request
RequestBody string
StatusCode int
RespondBody string
T LogInterface
}
FakeHandler is to assist in testing HTTP requests
func (*FakeHandler) ServeHTTP ¶
func (f *FakeHandler) ServeHTTP(response http.ResponseWriter, request *http.Request)
type LogInterface ¶
type LogInterface interface {
Errorf(format string, args ...interface{})
Logf(format string, args ...interface{})
}
LogInterface is a simple interface providing Errorf an Logf
Click to show internal directories.
Click to hide internal directories.