ginx

package
v0.0.0-...-6875e1c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertParamInt

func ConvertParamInt(c *gin.Context, param string) (number int, success bool)

func ConvertQueryInt

func ConvertQueryInt(c *gin.Context, query string, defaultValue string) (number int, success bool)

func ErrorHandle

func ErrorHandle(c *gin.Context, httpCode int, err error) bool

func Logger

func Logger(logger logrus.FieldLogger, notLogged ...string) gin.HandlerFunc

Types

type ErrorObject

type ErrorObject struct {
	Result  bool   `json:"result"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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