Documentation
¶
Overview ¶
Package TypeConverter implements uplink data analysis. Used to process upstream requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
type Request struct {
// Host 请求地址
Host string
// Path 请求子地址
Path string
// IpAddr IP地址
IpAddr string
// Header 头部信息
Header map[string]string
// Method 请求方式
Method string
// Params 上行参数集合
Params map[string]interface{}
// Get get请求参数集合
Get map[string]interface{}
// Post post请求参数集合
Post map[string]interface{}
// Put put请求参数集合
Put map[string]interface{}
// File 上传的文件
File *RequestFile
// IsGet 是否Get请求
IsGet bool
// IsPost 是否Post请求
IsPost bool
// IsPut 是否Put请求
IsPut bool
// IsOpt 是否Option请求
IsOpt bool
// IsDel 是否Delete请求
IsDel bool
// IsPatch 是否Patch请求
IsPatch bool
// Extra 其他参数, 由外部注入的参数
Extra map[string]interface{}
}
Request 上行请求
Click to show internal directories.
Click to hide internal directories.