Documentation ¶
Index ¶
- type Builder
- type Method
- type Middleware
- type Multi
- type MultiBuilder
- 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 ¶
type Multi struct {
// contains filtered or unexported fields
}
func (*Multi) Add ¶ added in v1.2.1
func (m *Multi) Add() *MultiBuilder
func (*Multi) AddRoute ¶
func (m *Multi) AddRoute(me Method, path string, h http.HandlerFunc, midd ...Middleware) *Multi
type MultiBuilder ¶ added in v1.2.1
type MultiBuilder struct {
// contains filtered or unexported fields
}
func (*MultiBuilder) HandleFunc ¶ added in v1.2.1
func (mb *MultiBuilder) HandleFunc(handlerFunc http.HandlerFunc, midd ...Middleware) *Multi
func (*MultiBuilder) PathWithMethods ¶ added in v1.2.1
func (mb *MultiBuilder) PathWithMethods(path string, methods ...string) *MultiBuilder
type Parent ¶
type Parent struct {
// contains filtered or unexported fields
}
func WithParent ¶
func (*Parent) Middleware ¶
func (pb *Parent) Middleware(middleware ...Middleware) *Parent
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func (*Route) GetHandler ¶
func (r *Route) GetHandler() http.HandlerFunc
func (*Route) GetMethods ¶ added in v1.2.1
Click to show internal directories.
Click to hide internal directories.