Documentation ¶
Index ¶
- func BunHandlerFunc(handler HandlerFunc) bunrouter.HandlerFunc
- func BunMiddlewareFunc(mdw MiddlewareFunc) bunrouter.MiddlewareFunc
- type DefaultHandler
- type Group
- func (g Group) DELETE(path string, handler HandlerFunc)
- func (g Group) GET(path string, handler HandlerFunc)
- func (g Group) HEAD(path string, handler HandlerFunc)
- func (g Group) Handle(method string, path string, handler HandlerFunc)
- func (g Group) LoadRoutes(routes []Route)
- func (g Group) NewGroup(path string, opts ...bunrouter.GroupOption) *Group
- func (g Group) OPTIONS(path string, handler HandlerFunc)
- func (g Group) PATCH(path string, handler HandlerFunc)
- func (g Group) POST(path string, handler HandlerFunc)
- func (g Group) PUT(path string, handler HandlerFunc)
- func (g Group) WithGroup(path string, fn func(g *Group))
- func (g Group) WithMiddleware(middleware MiddlewareFunc) *Group
- type HandlerFunc
- type MiddlewareFunc
- type Request
- type Response
- type Route
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BunHandlerFunc ¶
func BunHandlerFunc(handler HandlerFunc) bunrouter.HandlerFunc
func BunMiddlewareFunc ¶
func BunMiddlewareFunc(mdw MiddlewareFunc) bunrouter.MiddlewareFunc
Types ¶
type DefaultHandler ¶
type DefaultHandler struct {
// contains filtered or unexported fields
}
func (DefaultHandler) ServeHTTP ¶
func (h DefaultHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (Group) DELETE ¶
func (g Group) DELETE(path string, handler HandlerFunc)
func (Group) GET ¶
func (g Group) GET(path string, handler HandlerFunc)
func (Group) HEAD ¶
func (g Group) HEAD(path string, handler HandlerFunc)
func (Group) LoadRoutes ¶
func (Group) OPTIONS ¶
func (g Group) OPTIONS(path string, handler HandlerFunc)
func (Group) PATCH ¶
func (g Group) PATCH(path string, handler HandlerFunc)
func (Group) POST ¶
func (g Group) POST(path string, handler HandlerFunc)
func (Group) PUT ¶
func (g Group) PUT(path string, handler HandlerFunc)
func (Group) WithMiddleware ¶
func (g Group) WithMiddleware(middleware MiddlewareFunc) *Group
type HandlerFunc ¶
func FromBunHandlerFunc ¶
func FromBunHandlerFunc(handler bunrouter.HandlerFunc) HandlerFunc
type MiddlewareFunc ¶
type MiddlewareFunc func(next HandlerFunc) HandlerFunc
type Response ¶
type Response struct {
http.ResponseWriter
}
type Route ¶
type Route struct { Path string Method string Handler HandlerFunc Middleware MiddlewareFunc Children []Route Options []bunrouter.GroupOption }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.