Versions in this module Expand all Collapse all v1 v1.0.0 Sep 5, 2019 Changes in this version + var UNIQS *luniq.Uniq = luniq.New() + func Redirect(from, to string, code int) + func Register(method string, path string, fn HANDLER) + func RegisterJsonRPC(url string) + func ServeHTTP(rw http.ResponseWriter, req *http.Request) + func SetDefault(rt *Router) + type HANDLER func(rw http.ResponseWriter, r *http.Request, params Params) + type Params map[string]string + func (p Params) GetBool(name string) bool + func (p Params) GetFloat(name string) float64 + func (p Params) GetInt(name string) int64 + func (p Params) GetString(name string) string + type Router struct + BadRequestFunc http.HandlerFunc + InternalErrorFunc http.HandlerFunc + LoggerFunc log.LoggerFunc + MakeUid bool + NotFoundFunc http.HandlerFunc + OptionsFunc http.HandlerFunc + func GetDefault() *Router + func New(isDefault bool) *Router + func (r *Router) Redirect(from, to string, code int) + func (r *Router) Register(method string, path string, fn HANDLER) + func (r *Router) RegisterJsonRPC(url string) + func (r *Router) ServeHTTP(rw http.ResponseWriter, req *http.Request)