Versions in this module Expand all Collapse all v0 v0.1.1 Oct 20, 2014 v0.1.0 Oct 20, 2014 Changes in this version + const AbortIndex + const AuthUserKey + const ErrorTypeAll + const ErrorTypeExternal + const ErrorTypeInternal + const MIMEHTML + const MIMEJSON + const MIMEPOSTForm + const MIMEPlain + const MIMEXML + const MIMEXML2 + type Accounts map[string]string + type BasicAuthPair struct + Code string + User string + type Context struct + Engine *Engine + Errors errorMsgs + Keys map[string]interface{} + Params httprouter.Params + Request *http.Request + Writer ResponseWriter + func (c *Context) Abort(code int) + func (c *Context) Bind(obj interface{}) bool + func (c *Context) BindWith(obj interface{}, b binding.Binding) bool + func (c *Context) Copy() *Context + func (c *Context) Data(code int, contentType string, data []byte) + func (c *Context) EnsureBody(item interface{}) bool + func (c *Context) Error(err error, meta interface{}) + func (c *Context) ErrorTyped(err error, typ uint32, meta interface{}) + func (c *Context) Fail(code int, err error) + func (c *Context) File(filepath string) + func (c *Context) Get(key string) (interface{}, error) + func (c *Context) HTML(code int, name string, obj interface{}) + func (c *Context) JSON(code int, obj interface{}) + func (c *Context) LastError() error + func (c *Context) MustGet(key string) interface{} + func (c *Context) Next() + func (c *Context) ParseBody(item interface{}) error + func (c *Context) Render(code int, render render.Render, obj ...interface{}) + func (c *Context) Set(key string, item interface{}) + func (c *Context) String(code int, format string, values ...interface{}) + func (c *Context) XML(code int, obj interface{}) + type Engine struct + HTMLRender render.Render + func Default() *Engine + func New() *Engine + func (engine *Engine) LoadHTMLFiles(files ...string) + func (engine *Engine) LoadHTMLGlob(pattern string) + func (engine *Engine) LoadHTMLTemplates(pattern string) + func (engine *Engine) NoRoute(handlers ...HandlerFunc) + func (engine *Engine) NotFound404(handlers ...HandlerFunc) + func (engine *Engine) Run(addr string) + func (engine *Engine) RunTLS(addr string, cert string, key string) + func (engine *Engine) ServeFiles(path string, root http.FileSystem) + func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (engine *Engine) SetHTMLTemplate(templ *template.Template) + func (engine *Engine) Use(middlewares ...HandlerFunc) + type H map[string]interface + func (h H) MarshalXML(e *xml.Encoder, start xml.StartElement) error + type HandlerFunc func(*Context) + func BasicAuth(accounts Accounts) HandlerFunc + func ErrorLogger() HandlerFunc + func ErrorLoggerT(typ uint32) HandlerFunc + func Logger() HandlerFunc + func Recovery() HandlerFunc + type Pairs []BasicAuthPair + func (a Pairs) Len() int + func (a Pairs) Less(i, j int) bool + func (a Pairs) Swap(i, j int) + type ResponseWriter interface + Status func() int + Written func() bool + type RouterGroup struct + Handlers []HandlerFunc + func (group *RouterGroup) DELETE(path string, handlers ...HandlerFunc) + func (group *RouterGroup) GET(path string, handlers ...HandlerFunc) + func (group *RouterGroup) Group(component string, handlers ...HandlerFunc) *RouterGroup + func (group *RouterGroup) HEAD(path string, handlers ...HandlerFunc) + func (group *RouterGroup) Handle(method, p string, handlers []HandlerFunc) + func (group *RouterGroup) OPTIONS(path string, handlers ...HandlerFunc) + func (group *RouterGroup) PATCH(path string, handlers ...HandlerFunc) + func (group *RouterGroup) POST(path string, handlers ...HandlerFunc) + func (group *RouterGroup) PUT(path string, handlers ...HandlerFunc) + func (group *RouterGroup) Static(p, root string) + func (group *RouterGroup) Use(middlewares ...HandlerFunc)