Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { Path string Pattern *regexp.Regexp Method string Accepts string HandlerFunc http.HandlerFunc }
Route is the mapping to a request made to the server
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router handles the routing of the web server
func (*Router) AddHandler ¶
func (ro *Router) AddHandler(rh RoutesHandler)
AddHandler adds the routes handler routes to the router
type RoutesHandler ¶
type RoutesHandler interface {
Routes() Routes
}
RoutesHandler is any object that has routes
Click to show internal directories.
Click to hide internal directories.