config

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtCustomClaimsJSONStringToMap added in v0.4.1

func JwtCustomClaimsJSONStringToMap(jwtCustomClaimsJSON string) (map[string]interface{}, error)

Converts jwtCustomClaimsJSON from string to map[string]interface{}

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
	JwtCustomClaimsJSON string
	JwtIss              string
	JwtAud              string
	JwtHeader           string
	JwtsFilename        string
	SendJWT             bool
	Headers             []string
	Body                string
	BodyFile            string
	Client              string
	Parallel            bool
}

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, jwtCustomClaimsJSON, jwtIss, jwtAud, jwtHeader, jwtsFilename string, headers []string, body, bodyFile string, client string, parallel bool) *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