Versions in this module Expand all Collapse all v1 v1.0.0 Apr 6, 2024 Changes in this version + const DELETE + const GET + const HEAD + const OPTIONS + const PATCH + const POST + const PUT + const PathSeparator + const TRACE + var Methods = map[string]string + type FilterFunc func(http.Handler) http.Handler + type Param struct + type QueryParam struct + type Route struct + func (route *Route) AddAuthenticator(auth auth.Authenticator) *Route + func (route *Route) AddFilter(filter ...FilterFunc) *Route + func (route *Route) SetLogger(logger *l3.BaseLogger) *Route + type Router struct + func NewRouter() *Router + func (router *Router) Add(path string, f func(w http.ResponseWriter, r *http.Request), methods ...string) *Route + func (router *Router) Delete(path string, f func(w http.ResponseWriter, r *http.Request)) *Route + func (router *Router) Get(path string, f func(w http.ResponseWriter, r *http.Request)) *Route + func (router *Router) GetBoolPathParams(id string, r *http.Request) (bool, error) + func (router *Router) GetBoolQueryParams(id string, r *http.Request) (bool, error) + func (router *Router) GetFloatPathParams(id string, r *http.Request) (float64, error) + func (router *Router) GetFloatQueryParams(id string, r *http.Request) (float64, error) + func (router *Router) GetIntPathParams(id string, r *http.Request) (int, error) + func (router *Router) GetIntQueryParams(id string, r *http.Request) (int, error) + func (router *Router) GetPathParams(id string, r *http.Request) (string, error) + func (router *Router) GetQueryParams(id string, r *http.Request) (string, error) + func (router *Router) Post(path string, f func(w http.ResponseWriter, r *http.Request)) *Route + func (router *Router) Put(path string, f func(w http.ResponseWriter, r *http.Request)) *Route + func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)