Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
func Chain ¶
func Chain(ms ...Middleware) Middleware
type MiddlewareFunc ¶
type Route ¶
type Route struct { Methods []string PathPattern string Middleware Middleware }
func (Route) PrependPathPattern ¶
func (Route) WithMethods ¶
func (Route) WithMiddleware ¶
func (r Route) WithMiddleware(middleware Middleware) Route
func (Route) WithPathPattern ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) HTTPHandler ¶
Click to show internal directories.
Click to hide internal directories.