config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ctx              context.Context
	ReqURI           string
	DisableKeepAlive bool
	ReqTarget        int64
	Conns            uint
	Duration         time.Duration
	MTLSKey          string
	MTLSCert         string
	SkipVerify       bool
	ReadTimeout      time.Duration
	WriteTimeout     time.Duration
	Method           string
	Verbose          bool
	VerboseTicker    time.Duration
	JwtKID           string
	JwtKey           string
	JwtSub           string
	JwtIss           string
	JwtAud           string
	JwtHeader        string
	SendJWT          bool
	Headers          []string
	Body             string
	BodyFile         string
	Client           string
}

func NewConfig

func NewConfig(ctx context.Context, reqURI, mTLScert, mTLSKey string, disableKeepAlive bool, reqs int64, conns uint, totalTime time.Duration, skipVerify bool, readTimeout, writeTimeout time.Duration, method string, verbose bool, ticker time.Duration, jwtKID, jwtKey, jwtSub, jwtIss, jwtAud, jwtHeader string, headers []string, body, bodyFile string, client string) *Config

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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