config

package
v0.0.0-...-39125e7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	// The scheme to use (ws/wss).
	Scheme DialerScheme

	// The default Duration of a measurement.
	Duration time.Duration

	// The delay between stream starts.
	StreamsDelay time.Duration

	// Ignore invalid TLS certs.
	NoVerify bool

	// Congestion control algorithm to request to the server.
	CongestionControl string
}

func New

func New(scheme DialerScheme, duration, delay time.Duration, cc string) *ClientConfig

func NewDefault

func NewDefault() *ClientConfig

type DialerScheme

type DialerScheme string
const (
	WebSocketSecure DialerScheme = "wss"
	WebSocket                    = "ws"
)

Jump to

Keyboard shortcuts

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