Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Controller ¶ added in v0.2.1
type Controller struct {
GroupWrapper
// contains filtered or unexported fields
}
Controller is the struct for the controller
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group is the route group struct
func (*Group) HandleFunc ¶
func (g *Group) HandleFunc(path string, handler http.HandlerFunc)
HandleFunc registers a new route with a path and a handler function
type GroupWrapper ¶ added in v0.2.1
type GroupWrapper interface {
Group() *http.ServeMux
HandleFunc(string, http.HandlerFunc)
RegisterGroup(string, http.Handler)
}
GroupWrapper is the interface for the route group
Click to show internal directories.
Click to hide internal directories.