app

package
v0.0.0-...-1af0dc4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSConfig

func GetTLSConfig(caCrtPath, clientCrtPath, clientKeyPath string) *tls.Config

Types

type FlagVar

type FlagVar struct {
	ConcurrentUsers int
	TotalRequests   int64
	ProxyAddr       string
	DstAddr         string

	Sa *socks.SocksAuth

	//tr *http.Transport
	Hc  *http.Client
	Req *http.Request

	Fc      *fasthttp.Client
	FastReq *fasthttp.Request

	Headers     map[string]string
	Body        []byte
	ContentType string
	Method      string

	TlsConfig *tls.Config
}

func (*FlagVar) FasthttpPrepare

func (fv *FlagVar) FasthttpPrepare()

func (*FlagVar) FasthttpRelease

func (fv *FlagVar) FasthttpRelease()

func (*FlagVar) RequestPrepare

func (fv *FlagVar) RequestPrepare()

type FvFunctions

type FvFunctions interface {
	RequestPrepare()
	FasthttpPrepare()
	FasthttpRelease()
}

Jump to

Keyboard shortcuts

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