middle

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestHandler

func RequestHandler(c martini.Context, r *http.Request)

func ResponseHandler

func ResponseHandler(c martini.Context, w http.ResponseWriter)

Types

type Request

type Request interface {
	Param(string) string
}

func NewRequest

func NewRequest(req *http.Request) Request

type Response

type Response interface {
	RenderJson(statusCode int, jsonObject interface{})
}

func NewResponse

func NewResponse(writer http.ResponseWriter) Response

Jump to

Keyboard shortcuts

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