Versions in this module Expand all Collapse all v1 v1.0.0 Aug 30, 2017 Changes in this version + func NewGracefulListener(ln net.Listener, maxWaitTime time.Duration) net.Listener + type CachedObj struct + type CachedStatic struct + type GracefulListener struct + func (ln *GracefulListener) Accept() (net.Conn, error) + func (ln *GracefulListener) Addr() net.Addr + func (ln *GracefulListener) Close() error + type JSONError struct + Code int + Errors []interface{} + Message string + type JSONErrors struct + Error JSONError + type Middleware struct + type Node struct + type Request struct + BaseUrl string + Ctx context.Context + Writer io.Writer + func NewRequest(ctx *fasthttp.RequestCtx) *Request + func (r *Request) Error(statusCode int, msg string, errors ...interface{}) (int, error) + func (r *Request) GetMethod() string + func (r *Request) JSON(code int, obj interface{}) (int, error) + func (r *Request) QueryParam(key string) string + func (r *Request) ReadJSON(i interface{}) error + func (r *Request) RouteParam(key string) string + func (r *Request) Send(data interface{}) (int, error) + type Route struct + type Server struct + func New() *Server + func (sn *Server) All(route string, routeFunc func(*Request)) + func (sn *Server) Close() error + func (sn *Server) Delete(route string, routeFunc func(*Request)) + func (sn *Server) EnableDebug(debug bool) + func (sn *Server) Get(route string, routeFunc func(*Request)) + func (sn *Server) ListenAndServe(addr string) error + func (sn *Server) ListenAndServeTLS(addr, certFile, keyFile string) error + func (sn *Server) Post(route string, routeFunc func(*Request)) + func (sn *Server) Put(route string, routeFunc func(*Request)) + func (sn *Server) Restricted(method, route string, routeFunc func(*Request)) + func (sn *Server) Serve(ln net.Listener) error + func (sn *Server) SetShutDownHandler(shutdownFunc func()) + func (sn *Server) Use(f func(*Request, func()))