Documentation
¶
Index ¶
- type Assets
- type Body
- type Context
- type Handler
- func (h *Handler) ASSETS(path string)
- func (h *Handler) DELETE(path string, ...)
- func (h *Handler) GET(path string, ...)
- func (h *Handler) PATCH(path string, ...)
- func (h *Handler) POST(path string, ...)
- func (h *Handler) PUT(path string, ...)
- func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type IHandler
- type Node
- type Params
- type Route
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func (*Context) NewBodyDecoder ¶
func (c *Context) NewBodyDecoder(reader io.ReadCloser)
type Handler ¶
type Handler struct {
Router *Router
}
type IHandler ¶
type IHandler interface { ServeHTTP(http.ResponseWriter, *http.Request) GET(path string, handler func(ctx *Context, w http.ResponseWriter, r *http.Request)) POST(path string, handler func(ctx *Context, w http.ResponseWriter, r *http.Request)) PATCH(path string, handler func(ctx *Context, w http.ResponseWriter, r *http.Request)) PUT(path string, handler func(ctx *Context, w http.ResponseWriter, r *http.Request)) DELETE(path string, handler func(ctx *Context, w http.ResponseWriter, r *http.Request)) }
Click to show internal directories.
Click to hide internal directories.