config

package
v0.5.25 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 1 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 {
	Decoder DecoderType
	File    string
	// Limit limits total num of ammo. Unlimited if zero.
	Limit uint
	// Default HTTP headers
	Headers []string
	// Passes limits ammo file passes. Unlimited if zero.
	// Only for `jsonline` decoder.
	Passes          uint
	Uris            []string
	ContinueOnError bool
	// Maximum number of byte in jsonline ammo. Default is bufio.MaxScanTokenSize
	MaxAmmoSize int
	ChosenCases []string
	Middlewares []middleware.Middleware
	Preload     bool
}

type DecoderType

type DecoderType string
const (
	DecoderURI      DecoderType = "uri"
	DecoderURIPost  DecoderType = "uripost"
	DecoderRaw      DecoderType = "raw"
	DecoderJSONLine DecoderType = "jsonline"
)

func (DecoderType) IsValid

func (d DecoderType) IsValid() bool

Jump to

Keyboard shortcuts

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