internal

package
v0.0.0-...-fd13c6e Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const HTTP2 = "http2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Workload

type Workload interface {
	Init()
	Body(index int) io.Reader
	MessagesPerPayload() int
	NewClient(maxConnectionsPerHost int, protocolInfo string) WorkloadClient
}

func BuildWorkload

func BuildWorkload(name string, hosts string, messagesPerRequest int) Workload

type WorkloadClient

type WorkloadClient interface {
	DoRequest(index int) error
}

func NewBinaryClient

func NewBinaryClient(w Workload, host string, maxConnectionsPerHost int, ordered bool) WorkloadClient

func NewHttpClient

func NewHttpClient(
	workload Workload,
	maxConnectionsPerHost int,
	protocolInfo string,
	hosts string,
	path string,
	method string,
	contentType string,
) WorkloadClient

Jump to

Keyboard shortcuts

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