request

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParamInt

func GetParamInt(c *gin.Context, name string) (int, error)

func Into

func Into[T any](c *gin.Context, request T) (T, error)

func IntoAndValidate

func IntoAndValidate[T any](c *gin.Context, validator binding.StructValidator, request T) (*T, error)

func IntoWithDecorator

func IntoWithDecorator[T any](c *gin.Context, request T, decorator func(request *T) *T) (*T, error)

func ShouldBindURI

func ShouldBindURI(c *gin.Context, obj interface{}) error

ShouldBindURI binds the passed struct pointer using the specified binding engine.

Types

type APIRequest

type APIRequest interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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