Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeResponseWriter ¶
func (*FakeResponseWriter) Header ¶
func (res *FakeResponseWriter) Header() http.Header
func (*FakeResponseWriter) Write ¶
func (res *FakeResponseWriter) Write(data []byte) (total int, err error)
func (*FakeResponseWriter) WriteHeader ¶
func (res *FakeResponseWriter) WriteHeader(statusCode int)
type TestRequest ¶
func NewTestRequest ¶
func NewTestRequest() *TestRequest
func (*TestRequest) Param ¶
func (req *TestRequest) Param(key string) (value string)
type TestResponse ¶
func NewTestResponse ¶
func NewTestResponse() *TestResponse
func (*TestResponse) RenderJson ¶
func (res *TestResponse) RenderJson(statusCode int, jsonObj interface{})
Click to show internal directories.
Click to hide internal directories.