Documentation ¶
Overview ¶
Package routes provides types and functions used to collect routes and associated metadata. The route metadata is used to generate an index listing available routes supported by the application and the collected routes are registered with the servemux for request handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { Name string Pattern string Description string HandlerFunc http.HandlerFunc AllowedMethods []string }
Route reflects the patterns and handlers for each supported path in our API.
type Routes ¶
type Routes []Route
Routes is a collection of defined routes, intended for bulk registration and auto-indexing on the landing page for this application
func (*Routes) RegisterWithServeMux ¶
RegisterWithServeMux registers each recorded Route with the specified HTTP ServeMux.
Click to show internal directories.
Click to hide internal directories.