Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(httpMethod, relativePath string, handlers ...HandlerFunc)
Types ¶
type HandlerFunc ¶ added in v1.9.0
type HandlerFunc func(c *Context)
type IRouter ¶ added in v1.9.0
type IRouter interface { IRoutes Group(string, ...HandlerFunc) IRouter }
func Group ¶
func Group(relativePath string, handlers ...HandlerFunc) IRouter
type IRoutes ¶ added in v1.9.0
type IRoutes interface { Use(...HandlerFunc) IRoutes Handle(string, string, ...HandlerFunc) }
func Use ¶ added in v1.9.0
func Use(middlewares ...HandlerFunc) IRoutes
type Router ¶ added in v1.9.0
type Router struct {
// contains filtered or unexported fields
}
func (*Router) Group ¶ added in v1.9.0
func (r *Router) Group(relativePath string, handlers ...HandlerFunc) IRouter
func (*Router) Handle ¶ added in v1.9.0
func (r *Router) Handle(httpMethod, relativePath string, handlers ...HandlerFunc)
func (*Router) Use ¶ added in v1.9.0
func (r *Router) Use(middlewares ...HandlerFunc) IRoutes
type Routes ¶ added in v1.9.0
type Routes struct {
// contains filtered or unexported fields
}
func (*Routes) Handle ¶ added in v1.9.0
func (r *Routes) Handle(httpMethod, relativePath string, handlers ...HandlerFunc)
func (*Routes) Use ¶ added in v1.9.0
func (r *Routes) Use(middlewares ...HandlerFunc) IRoutes
Click to show internal directories.
Click to hide internal directories.