gin

package
v0.0.0-...-1858810 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

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 (c *Context) AbortWithJson(code int, i any)

func (*Context) Bind

func (c *Context) Bind(i any) error

func (*Context) Body

func (c *Context) Body() io.ReadCloser

func (*Context) FormFile

func (c *Context) FormFile(name string) (*multipart.FileHeader, error)

func (*Context) Header

func (c *Context) Header(key string) string

func (*Context) JSON

func (c *Context) JSON(code int, i any)

func (*Context) NoContent

func (c *Context) NoContent(code int)

func (*Context) OctetStream

func (c *Context) OctetStream(code int, data []byte)

func (*Context) OriginalURL

func (c *Context) OriginalURL() string

func (*Context) Param

func (c *Context) Param(name string) string

func (*Context) QueryParam

func (c *Context) QueryParam(name string) string

func (*Context) QueryParams

func (c *Context) QueryParams() url.Values

func (*Context) Redirect

func (c *Context) Redirect(location string, status int) error

func (*Context) Request

func (c *Context) Request() *http.Request

func (*Context) SetHeader

func (c *Context) SetHeader(key string, value string)

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

func (*Server) Run

func (s *Server) Run()

func (*Server) Shutdown

func (s *Server) Shutdown()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL