Documentation ¶
Overview ¶
Package model 请求数据模型package model
Index ¶
Constants ¶
View Source
const ( // HTTPOk request succeed HTTPOk = 200 // RequestErr request error RequestErr = 509 // ParseError ParseError = 510 )
返回 code 码
View Source
const ( FormTypeKvTable = "kvTable" FormParallelOk = "parallelOk" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { URL string // URL Form string // http/webSocket/tcp Method string // method GET/POST/PUT Headers map[string]string // Headers Body string // body Verify string Timeout time.Duration Debug bool MaxCon int HTTP2 bool Keepalive bool Code int // status code }
Request request data
type RequestResults ¶
type RequestResults struct { ID string // message ID ChanID uint64 // message ID Time uint64 // request time nanosecond IsSucceed bool // success ot not ErrCode int // error code ReceivedBytes int64 }
RequestResults
func (*RequestResults) SetID ¶
func (r *RequestResults) SetID(chanID uint64, number uint64)
SetID Set Request ID
Click to show internal directories.
Click to hide internal directories.