Versions in this module Expand all Collapse all v1 v1.0.0 Feb 25, 2014 Changes in this version + func Error(w *ResponseWriter, error string, code int) + func NotFound(w *ResponseWriter, r *Request) + type CorsInfo struct + AccessControlRequestHeaders []string + AccessControlRequestMethod string + IsCors bool + IsPreflight bool + Origin string + OriginUrl *url.URL + type HandlerFunc func(*ResponseWriter, *Request) + type Request struct + PathParams map[string]string + func (self *Request) DecodeJsonPayload(v interface{}) error + func (self *Request) GetCorsInfo() *CorsInfo + func (self *Request) PathParam(name string) string + func (self *Request) UriBase() url.URL + func (self *Request) UriFor(path string) url.URL + func (self *Request) UriForWithParams(path string, parameters map[string][]string) url.URL + type ResourceHandler struct + DisableJsonIndent bool + EnableGzip bool + EnableLogAsJson bool + EnableRelaxedContentType bool + EnableResponseStackTrace bool + EnableStatusService bool + Logger *log.Logger + PreRoutingMiddleware func(handler HandlerFunc) HandlerFunc + func (self *ResourceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (self *ResourceHandler) SetRoutes(routes ...Route) error + type ResponseWriter struct + func (self *ResponseWriter) CloseNotify() <-chan bool + func (self *ResponseWriter) Flush() + func (self *ResponseWriter) WriteJson(v interface{}) error + type Route struct + Func HandlerFunc + HttpMethod string + PathExp string + func RouteObjectMethod(httpMethod string, pathExp string, objectInstance interface{}, ...) Route