middleware

package
v0.0.0-...-db1d7af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeResponseWriter

type FakeResponseWriter struct {
	HeaderOutput http.Header
	StatusCode   int
	Body         string
}

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

type TestRequest struct {
	Params map[string]string
}

func NewTestRequest

func NewTestRequest() *TestRequest

func (*TestRequest) Param

func (req *TestRequest) Param(key string) (value string)

type TestResponse

type TestResponse struct {
	StatusCode int
	Body       string
	JsonErr    error
}

func NewTestResponse

func NewTestResponse() *TestResponse

func (*TestResponse) RenderJson

func (res *TestResponse) RenderJson(statusCode int, jsonObj interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL