Documentation ¶
Index ¶
- type Middleware
- type Mux
- func (m *Mux) Group(prefix string, middleware ...Middleware) *Mux
- func (m *Mux) Handle(pattern string, handler http.Handler)
- func (m *Mux) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
- func (m *Mux) Middleware(middleware ...Middleware) *Mux
- func (m *Mux) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux type
func (*Mux) Group ¶
func (m *Mux) Group(prefix string, middleware ...Middleware) *Mux
Group creates new group mux
func (*Mux) HandleFunc ¶
HandleFunc registers handler into mux
func (*Mux) Middleware ¶ added in v1.1.0
func (m *Mux) Middleware(middleware ...Middleware) *Mux
Middleware creates new mux without prefix with middleware
Click to show internal directories.
Click to hide internal directories.