cli

package
v0.0.0-...-f3e57f9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Whether the tool should run as server or client
	IsServerMode bool

	// Client Mode: Address of the corresponding server to connect to.
	// Server Mode: Address to listen for incoming connections.
	Address string

	// Type of the connection to test
	ConnectionType connection_type.ConnectionType

	// Whether TLS should be enabled (Cannot be enforced if the protocol to use is not supporting it or without it)
	// For example QUIC is enforcing TLS use, thus it cannot be disabled.
	TlsEnabled bool

	// TLS configuration to use
	TlsConfiguration tls.Config

	// Send until the Duration is over
	Duration time.Duration

	// Send the amount of Bytes over to the server
	Bytes int64

	// Send to the server with the set buffer size, use in connection with Duration.
	BufferSize int
}

Options for the CLI.

func ParseOptions

func ParseOptions() *Options

Parse the CLI options.

Jump to

Keyboard shortcuts

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