v0.0.0-...-eab4402 Latest Latest

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 4 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type SamplingOptions

type SamplingOptions struct {
	// How often should each URL be samples
	Iterations int

	// Number of parallel goroutines to start per URL
	ConcurrencyLevel int

	// Channel to send finished requests to
	Requests chan<- *request.FinishedRequest

SamplingOptions collect options for sampling URLs

type URLSampler

type URLSampler struct {
	// contains filtered or unexported fields

URLSampler provides methods for sampling URLs.

func NewURLSampler

func NewURLSampler(configuration URLSamplerConfiguration) *URLSampler

NewURLSampler creates a new URLSampler using the given configuration

func (*URLSampler) SampleURLs

func (s *URLSampler) SampleURLs(options SamplingOptions, urls ...string)

SampleURLs samples the given urls each with the given options

type URLSamplerConfiguration

type URLSamplerConfiguration struct {
	// Disable TLS verfication checks (i.e. accept self-signed certificates)?
	DisableTLSVerification bool

	// Disable HTTP Keep-Alive connection pooling?
	DisableKeepAlives bool

	// The HTTP User-Agent to use
	UserAgent string

	// HTTP Authorization header to send
	Authorization string

URLSamplerConfiguration describes the configuration properties for an URLSampler

Jump to

Keyboard shortcuts

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