config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseDirectory        string
	BaseRetryDelayMillis int
	Color                bool
	ConnectTimeoutMillis int
	Insecure             bool
	JsonEnvelope         bool
	RequestFilename      string
	RequestHeaders       []RequestHeader
	RequestMethod        string
	RequestWorkers       int
	ResponseWorkers      int
	ResponseBody         ResponseBodyType
	Retries              int
	Silent               bool
	SubdirLength         int
	ThrottlePerSecond    int
}

func New

func New() *Config

type RequestHeader

type RequestHeader struct {
	Key   string
	Value string
}

func ConvertRequestHeaders

func ConvertRequestHeaders(stringHeaders []string) ([]RequestHeader, error)

func NewRequestHeader

func NewRequestHeader(headerString string) (RequestHeader, error)

type ResponseBodyType added in v1.0.0

type ResponseBodyType string
const (
	Base64  ResponseBodyType = "base64"
	Discard ResponseBodyType = "discard"
	Escaped ResponseBodyType = "escaped" // escaped to a valid JSON string
	Sha256  ResponseBodyType = "sha256"
	Raw     ResponseBodyType = "raw"
)

Jump to

Keyboard shortcuts

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