ginWrapper

package
v0.2.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinContext

type GinContext struct {
	// contains filtered or unexported fields
}

func (*GinContext) Bind

func (c *GinContext) Bind(obj any) error

func (*GinContext) BindQuery

func (c *GinContext) BindQuery(obj any)

func (*GinContext) BindQueryNotImplemented

func (c *GinContext) BindQueryNotImplemented() bool

func (*GinContext) BodyParser

func (c *GinContext) BodyParser(model any) error

func (*GinContext) ClientIP

func (c *GinContext) ClientIP() string

func (*GinContext) Cookie

func (c *GinContext) Cookie(name string) (string, error)

func (*GinContext) File

func (c *GinContext) File(filepath string) error

func (*GinContext) FileAttachment

func (c *GinContext) FileAttachment(filepath, filename string) error

func (*GinContext) Get

func (c *GinContext) Get(key string, defaultValue ...string) string

func (*GinContext) Header

func (c *GinContext) Header(key, value string)

func (*GinContext) JSON

func (c *GinContext) JSON(statusCode int, data any) error

func (*GinContext) JSONP

func (c *GinContext) JSONP(code int, data any) error

func (*GinContext) Method

func (c *GinContext) Method() string

func (*GinContext) Params

func (c *GinContext) Params(key string, undefined ...string) string

func (*GinContext) Path

func (c *GinContext) Path() string

func (*GinContext) Query

func (c *GinContext) Query(key string, undefined ...string) string

func (*GinContext) Redirect

func (c *GinContext) Redirect(code int, location string) error

func (*GinContext) Render

func (c *GinContext) Render(name string, bind interface{}, layouts ...string) error

func (*GinContext) SendStream

func (c *GinContext) SendStream(stream io.Reader, size ...int) error

func (*GinContext) SendString

func (c *GinContext) SendString(s string) error

func (*GinContext) Set

func (c *GinContext) Set(key string, value any)

func (*GinContext) SetCookie

func (c *GinContext) SetCookie(cookie *http.Cookie)

func (*GinContext) SetHeader

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

func (*GinContext) ShouldBind

func (c *GinContext) ShouldBind(obj any) error

func (*GinContext) Status

func (c *GinContext) Status(statusCode int)

func (*GinContext) TOML

func (c *GinContext) TOML(code int, obj any) error

func (*GinContext) Validate

func (c *GinContext) Validate(obj any) error

func (*GinContext) ValidateNotImplemented

func (c *GinContext) ValidateNotImplemented() bool

func (*GinContext) Write

func (c *GinContext) Write(p []byte) (int, error)

func (*GinContext) XML

func (c *GinContext) XML(code int, obj any) error

func (*GinContext) YAML

func (c *GinContext) YAML(code int, obj any) error

type GinMux

type GinMux struct {
	App *gin.Engine
}

Jump to

Keyboard shortcuts

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