# Functions
No description provided by the author
处理gzip压缩.
Http is http go link.
HttpJson is 通过返回的Body 判断 返回示例: {"code":200,"msg":"Success","data":{}} code 默认将http code作为返回码,http code 为200时 取body中的返回code.
HttpMulti is 处理行数大于100的逻辑。.
HttpRequest is HTTP 请求 method 方法 GET POST url 请求的url body 请求的body headers 请求头信息 timeout 请求超时时间.
HttpStatusCode is 通过Http状态码判断是否请求成功.
MallVersionJson 通过返回的Body 判断.
NewDefaultRequest is a default request.
NewRequest is get Request form url 压测的url verify 验证方法 在server/verify中 http 支持:statusCode、json webSocket支持:json timeout 请求超时时间 debug 是否开启debug path curl文件路径 http接口压测,自定义参数设置.
NewWebSocket is get WebSocketC.
ReceivingResults is 接收结果并处理 统计的时间都是纳秒,显示的时间 都是毫秒 concurrent 并发数.
RegisterVerifyHttp is 注册http校验函数.
RegisterVerifyWebSocket is 注册webSocket校验函数.
WebSocket is web socket go link.
WebSocketJson is 通过返回的Body 判断 返回示例: {"seq":"1566276523281-585638","cmd":"heartbeat","response":{"code":200,"codeMsg":"Success","data":null}} code 取body中的返回code.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
请求成功.
解析错误.
请求错误.
请求超时.
# Variables
Body is HTTP POST data 上传的数据.
Compressed is curl zip algorithm.
Concurrency is 并发请求数.
Debug is 是否开其调试模式.
Header is 自定义头信息传递给服务器.
Number is 单个协程的请求总数.
Path is curl 文件路径.
RequestUrl is 压力测试的Url.
VerifyStr is 验证方法.
# Structs
MallVersion is for mall.youpenglai.com/apis/version.
Req is weights for request.
ReqListWeigh 接口加权压测.
Request is a form for http request 请求结果.
RequestResults is 请求结果.
返回数据结构体.
WebSocketC is client for websocket.
WebSocketResponseJson is 返回数据结构体.
# Interfaces
Verify is interface for 验证器.
# Type aliases
VerifyHttp is verify for http 验证方法.
VerifyWebSocket is verify for websocket.