loop2

package
v0.20.8 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MagicHeader = []byte{0xCA, 0xFE, 0xF0, 0x0D}

Functions

This section is empty.

Types

type Scenario

type Scenario struct {
	Workloads       []*Workload `yaml:"workloads"`
	ConnectionDelay int32       `yaml:"connectionDelay"`
}

func LoadScenario

func LoadScenario(path string) (*Scenario, error)

func (*Scenario) String

func (scenario *Scenario) String() string

type Test

type Test struct {
	TxRequests      int32 `yaml:"txRequests"`
	TxPacing        int32 `yaml:"txPacing"`
	TxMaxJitter     int32 `yaml:"txMaxJitter"`
	RxTimeout       int32 `yaml:"rxTimeout"`
	PayloadMinBytes int32 `yaml:"payloadMinBytes"`
	PayloadMaxBytes int32 `yaml:"payloadMaxBytes"`
}

type Workload

type Workload struct {
	Name        string `yaml:"name"`
	Concurrency int32  `yaml:"concurrency"`
	Dialer      Test   `yaml:"dialer"`
	Listener    Test   `yaml:"listener"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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