gcgin

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetListener

func GetListener(addr string) *net.Listener

获取http 监听对象

func GetRawDataToMap added in v1.0.1

func GetRawDataToMap(c *gin.Context) (map[string]interface{}, error)

func GetRawDataToMapUseNumber added in v1.0.1

func GetRawDataToMapUseNumber(c *gin.Context) (map[string]interface{}, error)

func GetRawDataToString added in v1.0.1

func GetRawDataToString(c *gin.Context) (string, error)

func InitEngine

func InitEngine() *gin.Engine

func ParseForm added in v1.0.1

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

ParseForm 解析Form请求

func ParseJSON added in v1.0.1

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

ParseJSON 解析请求JSON

func ParseParam added in v1.0.1

func ParseParam(c *gin.Context, param string) string

func ParseParamInt added in v1.0.1

func ParseParamInt(c *gin.Context, param string) int

func ParseParamInt64 added in v1.0.1

func ParseParamInt64(c *gin.Context, param string) int64

func ParseParamUint added in v1.0.1

func ParseParamUint(c *gin.Context, param string) uint

func ParseParamUint64 added in v1.0.1

func ParseParamUint64(c *gin.Context, param string) uint64

func ParseQuery added in v1.0.1

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

ParseQuery 解析Query参数

func RemoveListener

func RemoveListener(addr string)

移除http 监听对象

func StartServer

func StartServer(addr string, c chan struct{}, g *gin.Engine)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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