Versions in this module Expand all Collapse all v1 v1.0.0 Nov 21, 2019 Changes in this version + var ErrorHandlerFunc = func(ctx *Context, ex *exception.Exception) + var NotFoundHandlerFunc = func(ctx *Context) + func Delete(path string, fun RouterHandlerFunc) + func Get(path string, fun RouterHandlerFunc) + func Head(path string, fun RouterHandlerFunc) + func Options(path string, fun RouterHandlerFunc) + func Patch(path string, fun RouterHandlerFunc) + func Post(path string, fun RouterHandlerFunc) + func Put(path string, fun RouterHandlerFunc) + func Trace(path string, fun RouterHandlerFunc) + func WebSocket(path string, fun RouterHandlerFunc) + type Context struct + Logger *zap.Logger + Method string + Path string + Request *http.Request + Response *Response + Store map[string]interface{} + Websocket *websocket.Conn + func NewContext(r *http.Request, w http.ResponseWriter, logger *zap.Logger) *Context + type Response struct + Committed bool + Size int64 + Status int + Writer http.ResponseWriter + func NewResponse(w http.ResponseWriter, logger *zap.Logger) (r *Response) + func (r *Response) Flush() + func (r *Response) Header() http.Header + func (r *Response) Write(b []byte) (n int, err error) + func (r *Response) WriteHeader(code int) + type RouterHandlerFunc func(*Context) (interface{}, *exception.Exception) + func Wrapper(path string) RouterHandlerFunc