Documentation ¶
Index ¶
- Variables
- type Controller
- type Handle
- type Route
- type Router
- func (r *Router) DELETE(path string, handler interface{})
- func (r *Router) GET(path string, handler interface{})
- func (r *Router) OPTIONS(path string, handler interface{})
- func (r *Router) PATCH(path string, handler interface{})
- func (r *Router) POST(path string, handler interface{})
- func (r *Router) PUT(path string, handler interface{})
- func (r *Router) Serve(addr string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ControllersRegistry []Controller
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { }
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func (*Route) AddHandler ¶
Adds a handler function for this route
func (*Route) Handle ¶
func (r *Route) Handle(responseWriter ghttp.ResponseWriter, grequest *ghttp.Request, params httprouter.Params)
Click to show internal directories.
Click to hide internal directories.