Documentation ¶
Index ¶
- type ReqBench
- func (rb *ReqBench) Concurrent(c int) *ReqBench
- func (rb *ReqBench) DELETE(p string) *ReqBench
- func (rb *ReqBench) Duration(d int) *ReqBench
- func (rb *ReqBench) GET(p string) *ReqBench
- func (rb *ReqBench) HEAD(p string) *ReqBench
- func (rb *ReqBench) OPTIONS(p string) *ReqBench
- func (rb *ReqBench) PATCH(p string) *ReqBench
- func (rb *ReqBench) POST(p string) *ReqBench
- func (rb *ReqBench) PUT(p string) *ReqBench
- func (rb *ReqBench) Pipeline(p int) *ReqBench
- func (rb *ReqBench) Run()
- func (rb *ReqBench) SendFile(fn, path string) *ReqBench
- func (rb *ReqBench) SendFormData(h ujihttp.H) *ReqBench
- func (rb *ReqBench) SendJSON(j ujihttp.JSON) *ReqBench
- func (rb *ReqBench) SendMultipleFile(fn string, path []string) *ReqBench
- func (rb *ReqBench) Timeout(t int) *ReqBench
- func (rb *ReqBench) WithContentType(ct string) *ReqBench
- func (rb *ReqBench) WithCookies(h ujihttp.H) *ReqBench
- func (rb *ReqBench) WithHeader(h ujihttp.H) *ReqBench
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqBench ¶
type ReqBench struct {
// contains filtered or unexported fields
}
ReqBench is a request benchmark config
func (*ReqBench) Concurrent ¶
Concurrent to set total concurrent connections to use
func (*ReqBench) SendFormData ¶
SendFormData to send multipart/form-data
func (*ReqBench) SendMultipleFile ¶
SendMultipleFile (fieldName, filepath string)
Use [] on the fieldname to send multiple file from filepath
func (*ReqBench) WithContentType ¶
WithContentType to set content-type request
func (*ReqBench) WithCookies ¶
WithCookies to set cookies request
Click to show internal directories.
Click to hide internal directories.