Versions in this module Expand all Collapse all v0 v0.0.4 Feb 18, 2020 Changes in this version + var ReadTimeout time.Duration = time.Second * 30 + var WriteTimeout time.Duration = time.Second * 30 + func SetReadTimeout(second int) + func SetWriteTimeout(second int) + type Context struct + Keys map[string]interface{} + Method string + Params map[string]string + Path string + Req *http.Request + StatusCode int + Writer http.ResponseWriter + func (c *Context) Cookie(name string) (string, error) + func (c *Context) Data(code int, data []byte) + func (c *Context) Fail(code int, err string) + func (c *Context) Get(key string) (value interface{}, exists bool) + func (c *Context) GetHeader(key string) string + func (c *Context) HTML(code int, name string, data interface{}) + func (c *Context) JSON(code int, obj interface{}) + func (c *Context) MustGet(key string) interface{} + func (c *Context) Next() + func (c *Context) Param(key string) string + func (c *Context) PostForm(key string) string + func (c *Context) Query(key string) string + func (c *Context) Set(key string, value interface{}) + func (c *Context) SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool) + func (c *Context) SetHeader(key string, value string) + func (c *Context) Status(code int) + func (c *Context) String(code int, format string, values ...interface{}) + type Engine struct + func Default() *Engine + func New() *Engine + func (engine *Engine) LoadHTMLGlob(pattern string) + func (engine *Engine) Run(addr string) (err error) + func (engine *Engine) RunTLS(addr, ca, key string) (err error) + func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (engine *Engine) SetFuncMap(funcMap template.FuncMap) + func (engine *Engine) Shutdown() (err error) + type H map[string]interface + type HandlerFunc func(*Context) + func Logger() HandlerFunc + func Recovery() HandlerFunc + type RouterGroup struct + func (group *RouterGroup) Any(pattern string, handler HandlerFunc) + func (group *RouterGroup) DELETE(pattern string, handler HandlerFunc) + func (group *RouterGroup) GET(pattern string, handler HandlerFunc) + func (group *RouterGroup) Group(prefix string) *RouterGroup + func (group *RouterGroup) HEAD(pattern string, handler HandlerFunc) + func (group *RouterGroup) OPTIONS(pattern string, handler HandlerFunc) + func (group *RouterGroup) PATCH(pattern string, handler HandlerFunc) + func (group *RouterGroup) POST(pattern string, handler HandlerFunc) + func (group *RouterGroup) PUT(pattern string, handler HandlerFunc) + func (group *RouterGroup) Static(relativePath string, root string) + func (group *RouterGroup) TRACE(pattern string, handler HandlerFunc) + func (group *RouterGroup) Use(middlewares ...HandlerFunc)