Documentation ¶
Index ¶
- func HandleFunc(router *mux.Router, path string, f http.HandlerFunc, ...) *mux.Route
- func NewRouter() *mux.Router
- func PathKey[T comparable](req *http.Request, name string, out key[T])
- func PathParam(req *http.Request, name string) string
- func Serve(configs httpext.Configs, controllers []ControllerRegister, ...)
- type ControllerRegister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFunc ¶
func HandleFunc(router *mux.Router, path string, f http.HandlerFunc, middlewares ...mux.MiddlewareFunc) *mux.Route
func PathKey ¶ added in v1.2.1
func PathKey[T comparable](req *http.Request, name string, out key[T])
func Serve ¶
func Serve(configs httpext.Configs, controllers []ControllerRegister, middlewares []mux.MiddlewareFunc, cors *cors.Cors)
Types ¶
type ControllerRegister ¶
Click to show internal directories.
Click to hide internal directories.