request

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(writer io.Writer, context *gin.Context) error

func ShouldParam

func ShouldParam(c *gin.Context, key string, p *Parameter) bool

func ShouldParams

func ShouldParams(c *gin.Context, key string, p *Parameters) bool

Types

type Parameter

type Parameter string
func Header(c *gin.Context, key string) Parameter

func MustParam

func MustParam(c *gin.Context, key string) (Parameter, error)

func Param

func Param(c *gin.Context, key string) Parameter

func (Parameter) Bool

func (f Parameter) Bool() bool

func (Parameter) DefaultBool

func (f Parameter) DefaultBool(defaultValue bool) bool

func (Parameter) DefaultFloat64

func (f Parameter) DefaultFloat64(defaultValue float64) float64

func (Parameter) DefaultInt

func (f Parameter) DefaultInt(defaultValue int) int

func (Parameter) DefaultInt64

func (f Parameter) DefaultInt64(defaultValue int64) int64

func (Parameter) DefaultString

func (f Parameter) DefaultString(defaultValue string) string

func (Parameter) DefaultUint8

func (f Parameter) DefaultUint8(defaultValue uint8) uint8

func (Parameter) Exist

func (f Parameter) Exist() bool

func (Parameter) Float64

func (f Parameter) Float64() float64

func (Parameter) Int

func (f Parameter) Int() int

func (Parameter) Int64

func (f Parameter) Int64() int64

func (Parameter) MustBool

func (f Parameter) MustBool() (bool, error)

func (Parameter) MustFloat64

func (f Parameter) MustFloat64() (float64, error)

func (Parameter) MustInt

func (f Parameter) MustInt() (int, error)

func (Parameter) MustInt64

func (f Parameter) MustInt64() (int64, error)

func (Parameter) MustString

func (f Parameter) MustString() (string, error)

func (Parameter) MustUint8

func (f Parameter) MustUint8() (uint8, error)

func (Parameter) String

func (f Parameter) String() *string

func (Parameter) Uint8

func (f Parameter) Uint8() uint8

type Parameters

type Parameters []Parameter

func MustParams

func MustParams(c *gin.Context, key string) (Parameters, error)

func Params

func Params(c *gin.Context, key string) Parameters

func (Parameters) Bool

func (f Parameters) Bool() []bool

func (Parameters) DefaultBool

func (f Parameters) DefaultBool(defaultValue bool) []bool

func (Parameters) DefaultFloat64

func (f Parameters) DefaultFloat64(defaultValue float64) []float64

func (Parameters) DefaultInt

func (f Parameters) DefaultInt(defaultValue int) []int

func (Parameters) DefaultInt64

func (f Parameters) DefaultInt64(defaultValue int64) []int64

func (Parameters) DefaultUint8

func (f Parameters) DefaultUint8(defaultValue uint8) []uint8

func (Parameters) Float64

func (f Parameters) Float64() []float64

func (Parameters) Int

func (f Parameters) Int() []int

func (Parameters) Int64

func (f Parameters) Int64() []int64

func (Parameters) MustBool

func (f Parameters) MustBool() ([]bool, error)

func (Parameters) MustFloat64

func (f Parameters) MustFloat64() ([]float64, error)

func (Parameters) MustInt

func (f Parameters) MustInt() ([]int, error)

func (Parameters) MustInt64

func (f Parameters) MustInt64() ([]int64, error)

func (Parameters) MustString

func (f Parameters) MustString() ([]string, error)

func (Parameters) MustUint8

func (f Parameters) MustUint8() ([]uint8, error)

func (Parameters) String

func (f Parameters) String() []*string

func (Parameters) Uint8

func (f Parameters) Uint8() []uint8

Jump to

Keyboard shortcuts

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