ginx

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindJSON

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

func Bomb

func Bomb(code int, format string, a ...interface{})

func BombRecovery

func BombRecovery() gin.HandlerFunc

func Dangerous

func Dangerous(v interface{}, code ...int)

func QueryBool

func QueryBool(c *gin.Context, key string, defaultVal ...bool) bool

func QueryInt

func QueryInt(c *gin.Context, key string, defaultVal ...int) int

func QueryInt64

func QueryInt64(c *gin.Context, key string, defaultVal ...int64) int64

func QueryStr

func QueryStr(c *gin.Context, key string, defaultVal ...string) string

func UrlParamInt

func UrlParamInt(c *gin.Context, field string) int

func UrlParamInt64

func UrlParamInt64(c *gin.Context, field string) int64

func UrlParamStr

func UrlParamStr(c *gin.Context, field string) string

Types

type HTTPError

type HTTPError struct {
	Message string
	Code    int
}

func (HTTPError) Error

func (p HTTPError) Error() string

func (HTTPError) String

func (p HTTPError) String() string

type UInt64ID

type UInt64ID struct {
	ID uint64 `json:"id"`
}

Jump to

Keyboard shortcuts

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