Documentation ¶
Index ¶
- func WrapContext(ctx *gin.Context) httpInterface.Context
- type Context
- func (c *Context) AbortWithJson(code int, i any)
- func (c *Context) Bind(i any) error
- func (c *Context) Body() io.ReadCloser
- func (c *Context) FormFile(name string) (*multipart.FileHeader, error)
- func (c *Context) Header(key string) string
- func (c *Context) JSON(code int, i any)
- func (c *Context) NoContent(code int)
- func (c *Context) OctetStream(code int, data []byte)
- func (c *Context) OriginalURL() string
- func (c *Context) Param(name string) string
- func (c *Context) QueryParam(name string) string
- func (c *Context) QueryParams() url.Values
- func (c *Context) Redirect(location string, status int) error
- func (c *Context) Request() *http.Request
- func (c *Context) SetHeader(key string, value string)
- func (c *Context) SetHeaders(headers []httpInterface.Header)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapContext ¶
func WrapContext(ctx *gin.Context) httpInterface.Context
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) AbortWithJson ¶
func (*Context) Body ¶
func (c *Context) Body() io.ReadCloser
func (*Context) OctetStream ¶
func (*Context) OriginalURL ¶
func (*Context) QueryParam ¶
func (*Context) QueryParams ¶
func (*Context) SetHeaders ¶
func (c *Context) SetHeaders(headers []httpInterface.Header)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( cfg *config.Config, log *logrus.Logger, pingController *ping.PingController, blobController *blob.Controller, baseController *base.Controller, manifestController *manifest.Controller, ) *Server
Click to show internal directories.
Click to hide internal directories.