request

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidParameters = errors.New(10001, "invalid parameters")
)

Functions

func AcceptLanguage

func AcceptLanguage(c *gin.Context) string

func BindJSON

func BindJSON(c *gin.Context, v interface{}) error

func BindQuery

func BindQuery(c *gin.Context, v interface{}) error

func Body

func Body(c *gin.Context) (body []byte, err error)

func IsSuccess added in v1.1.4

func IsSuccess(c *gin.Context) bool

func Localizer added in v1.1.3

func Localizer(c *gin.Context) *localizer.Localizer

func Token

func Token(c *gin.Context) string

func WithLocalizer added in v1.1.3

func WithLocalizer(l *localizer.Localizer) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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