Documentation ¶
Index ¶
- type Route
- type Router
- func (r *Router) Bind(path string, function func(w http.ResponseWriter, r *http.Request)) *Route
- func (r *Router) BuildMuxRouter() *mux.Router
- func (r *Router) PathPrefix(tpl string, function func(w http.ResponseWriter, r *http.Request)) *Route
- func (r *Router) RespondOKToOptions(respond bool)
- func (r *Router) Use(mwf ...mux.MiddlewareFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { MuxRouter *mux.Router RespondToOptions bool // contains filtered or unexported fields }
func (*Router) BuildMuxRouter ¶
func (*Router) PathPrefix ¶
func (*Router) RespondOKToOptions ¶
func (*Router) Use ¶
func (r *Router) Use(mwf ...mux.MiddlewareFunc)
Click to show internal directories.
Click to hide internal directories.