Documentation
¶
Index ¶
- func MustSubFS(fsys fs.FS, dir string) fs.FS
- func NotFoundHandler(c Context) error
- type Context
- func (c Context) Cookie(name string) (*http.Cookie, error)
- func (c Context) JSON(status int, v any) error
- func (c Context) Param(name string) string
- func (c Context) Request() *http.Request
- func (c Context) Response() *Response
- func (c Context) SetCookie(cookie *http.Cookie)
- func (c Context) String(status int, text string) error
- type DefaultBinder
- type HandlerFunc
- type Response
- type Reverb
- func (r *Reverb) DELETE(path string, handler HandlerFunc)
- func (r *Reverb) GET(path string, handler HandlerFunc)
- func (r *Reverb) PATCH(path string, handler HandlerFunc)
- func (r *Reverb) POST(path string, handler HandlerFunc)
- func (r *Reverb) PUT(path string, handler HandlerFunc)
- func (r *Reverb) Start(addr string) error
- func (r *Reverb) Use(func(HandlerFunc) HandlerFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotFoundHandler ¶
Types ¶
type DefaultBinder ¶
type DefaultBinder struct{}
type HandlerFunc ¶
type Response ¶
type Response struct {
Writer http.ResponseWriter
}
type Reverb ¶
type Reverb struct {
HideBanner bool // Unused.
HidePort bool // Unused.
// contains filtered or unexported fields
}
func (*Reverb) DELETE ¶
func (r *Reverb) DELETE(path string, handler HandlerFunc)
func (*Reverb) GET ¶
func (r *Reverb) GET(path string, handler HandlerFunc)
func (*Reverb) PATCH ¶
func (r *Reverb) PATCH(path string, handler HandlerFunc)
func (*Reverb) POST ¶
func (r *Reverb) POST(path string, handler HandlerFunc)
func (*Reverb) PUT ¶
func (r *Reverb) PUT(path string, handler HandlerFunc)
func (*Reverb) Use ¶
func (r *Reverb) Use(func(HandlerFunc) HandlerFunc)
Click to show internal directories.
Click to hide internal directories.