Documentation ¶
Index ¶
Constants ¶
View Source
const ( Concurrency = 50 ConnectTimeout = 20 Data = "" DisableCompression = false DisableKeepAlives = false DisableRedirects = false Duration = 0 Http2 = false NumberOfRequests = 200 Output = "" Proxy = "" RateLimit = 0 Request = "" User = "" Method = "" UserAgent = "hey" Verbose = false )
Variables ¶
View Source
var ( Cpus = runtime.GOMAXPROCS(-1) HeaderSlice = []string{} Version = getVersion() )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Url string // method M string HeaderSlice []string Data string AuthHeader string UserAgent string Debug bool Output string // concurrency C int // number of request N int // rate Q float64 // timeout T int Dur time.Duration H2 bool Cpus int DisableCompression bool DisableKeepAlives bool DisableRedirects bool ProxyAddr string }
func NewConfigV ¶
Click to show internal directories.
Click to hide internal directories.