Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalMiddleware []mux.MiddlewareFunc
This is a middleware of any route.
View Source
var Routes []Route
Save all router.
Functions ¶
Types ¶
type Route ¶
type Route struct { Name string `json:"name"` Method string `json:"method"` Pattern string `json:"pattern"` HandlerFunc http.HandlerFunc `json:"-"` Middleware []mux.MiddlewareFunc `json:"-"` }
func (*Route) InitMiddleware ¶
func (route *Route) InitMiddleware()
InitMiddleware use to fresh middleware.
Click to show internal directories.
Click to hide internal directories.