Documentation ¶
Overview ¶
Package lib provides ...
Index ¶
Constants ¶
View Source
const ( Dir = 0 // Direction Time = 1 // Timestamp Rate = 2 // Rate )
CSV fields
Variables ¶
This section is empty.
Functions ¶
func BuildClient ¶
BuildClient for another lib to use
Types ¶
type Config ¶
type Config struct { Hosts hostList Listeners hostList DefaultPort string ReportInterval string TotalDuration string Chart string Export string Csv string TLSCert string TLSKey string LocalAddr string Opt Options ASCII bool // plot ascii chart TLS bool PassiveClient bool // suppress client send UDP bool Connections int }
Config for client or server use.
type ExportInfo ¶
ExportInfo records data for export
type Options ¶ added in v0.7.1
type Options struct { ReportInterval time.Duration TotalDuration time.Duration TCPReadSize int TCPWriteSize int UDPReadSize int UDPWriteSize int PassiveServer bool // suppress server send MaxSpeed float64 // mbps Table map[string]string // send optional information client->server }
Options msg.
Click to show internal directories.
Click to hide internal directories.