Documentation
¶
Index ¶
- type Ctx
- func (c *Ctx) Context() context.Context
- func (c *Ctx) Error(err error, code ...int)
- func (c *Ctx) JSON(data any) error
- func (c *Ctx) Params(p string) string
- func (c *Ctx) ParseBody(v any) error
- func (c *Ctx) Query(p string) URLParam
- func (c *Ctx) SetContext(ctx context.Context)
- func (c *Ctx) SetMiddleware(writer http.ResponseWriter, request *http.Request)
- func (c *Ctx) Span() trace.Span
- func (c *Ctx) WrapHTTPHandler(h http.HandlerFunc) error
- type HTTPHandler
- type HTTPMethod
- type HandlerFunc
- type Map
- type Router
- type Server
- type URLParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ctx ¶
type Ctx struct {
// contains filtered or unexported fields
}
func (*Ctx) SetContext ¶
func (*Ctx) SetMiddleware ¶
func (c *Ctx) SetMiddleware(writer http.ResponseWriter, request *http.Request)
func (*Ctx) WrapHTTPHandler ¶
func (c *Ctx) WrapHTTPHandler(h http.HandlerFunc) error
type HTTPHandler ¶
type HTTPHandler interface {
Register(r *Server)
}
type HandlerFunc ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterHandler ¶
func (s *Server) RegisterHandler(method HTTPMethod, path string, handler HandlerFunc)
func (*Server) SetTimeout ¶
Click to show internal directories.
Click to hide internal directories.