Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
Types ¶
type Config ¶
type Config struct { Duration time.Duration `json:"-"` // 处理时间 DurationStr string `json:"duration"` Url string `json:"url"` // 请求路径 HeaderSlice cli.StringSlice `json:"-"` Header http.Header `json:"header"` // 请求头 Body string `json:"body"` // 请求体 Threads int `json:"threads"` // 最大并发数量 Connections int `json:"connections"` // 最大连接数 Timeout time.Duration `json:"-"` // 连接/请求超时时间 TimeoutStr string `json:"timeout"` Method string `json:"method"` // 请求方法 }
func (*Config) InitConfig ¶
Click to show internal directories.
Click to hide internal directories.