config

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

func NewConfigV(url string) Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL