Documentation ¶
Index ¶
- type Builder
- type Method
- type Middleware
- type Multi
- type Parent
- func (pb *Parent) Connect(subPath string, fn http.HandlerFunc) *Parent
- func (pb *Parent) Delete(subPath string, fn http.HandlerFunc) *Parent
- func (pb *Parent) Get(subPath string, fn http.HandlerFunc) *Parent
- func (pb *Parent) Head(subPath string, fn http.HandlerFunc) *Parent
- func (pb *Parent) Middleware(middleware ...Middleware) *Parent
- func (pb *Parent) Options(subPath string, fn http.HandlerFunc) *Parent
- func (pb *Parent) Patch(subPath string, fn http.HandlerFunc) *Parent
- func (pb *Parent) Post(subPath string, fn http.HandlerFunc) *Parent
- func (pb *Parent) Put(subPath string, fn http.HandlerFunc) *Parent
- func (pb *Parent) Routes() []*Route
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Middleware ¶
func (rb *Builder) Middleware(middleware ...Middleware) *Builder
type Middleware ¶
type Middleware func(h http.HandlerFunc) http.HandlerFunc
type Multi ¶ added in v1.1.0
type Multi struct {
// contains filtered or unexported fields
}
func (*Multi) AddRoute ¶ added in v1.1.0
func (m *Multi) AddRoute(me Method, path string, h http.HandlerFunc, midd ...Middleware) *Multi
type Parent ¶
type Parent struct {
// contains filtered or unexported fields
}
func WithParent ¶
func (*Parent) Middleware ¶
func (pb *Parent) Middleware(middleware ...Middleware) *Parent
Click to show internal directories.
Click to hide internal directories.