github.com/yandex/pandora@v0.5.32/components/providers/http/config/config.go (about)

     1  package config
     2  
     3  import (
     4  	"github.com/yandex/pandora/components/providers/http/middleware"
     5  )
     6  
     7  type Config struct {
     8  	Decoder DecoderType
     9  	File    string
    10  	// Limit limits total num of ammo. Unlimited if zero.
    11  	Limit uint
    12  	// Default HTTP headers
    13  	Headers []string
    14  	// Passes limits ammo file passes. Unlimited if zero.
    15  	// Only for `jsonline` decoder.
    16  	Passes          uint
    17  	Uris            []string
    18  	ContinueOnError bool
    19  	// Maximum number of byte in jsonline ammo. Default is bufio.MaxScanTokenSize
    20  	MaxAmmoSize int
    21  	ChosenCases []string
    22  	Middlewares []middleware.Middleware
    23  	Preload     bool
    24  }