iperf3

package
v0.0.0-...-99867b7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Params             []*Param
	DstAddr            string
	DstPort            string
	MaximumSegmentSize int64
	UdpFlag            bool
	IPv6Flag           bool
	Flowlabel          int64
	WindowSize         string
}

func NewIperfClient

func NewIperfClient(cfg option.Config, params []*Param) *Client

func NewIperfClientFromParamsFile

func NewIperfClientFromParamsFile(cfg option.Config) (*Client, error)

func (Client) GenerateTraffic

func (c Client) GenerateTraffic() (traffic.Results, error)

func (Client) OutputResults

func (c Client) OutputResults(rs traffic.Results, out string) error

func (Client) OutputResultsCSV

func (c Client) OutputResultsCSV(rs traffic.Results, f *os.File) error

func (Client) TotalSendSeconds

func (c Client) TotalSendSeconds() traffic.Second

func (Client) TotalWaitMilliSeconds

func (c Client) TotalWaitMilliSeconds() traffic.MilliSecond

type Param

type Param struct {
	Bitrate          traffic.Bitrate     `csv:"Bitrate"`
	SendSeconds      traffic.Second      `csv:"SendSeconds"`
	WaitMilliSeconds traffic.MilliSecond `csv:"WaitMilliSeconds"`
}

type Server

type Server struct{}

func NewServer

func NewServer() *Server

func (*Server) OutputResult

func (s *Server) OutputResult(ress traffic.Results, out string) error

func (*Server) OutputResultCSV

func (s *Server) OutputResultCSV(ress traffic.Results, f *os.File) error

func (*Server) Run

func (s *Server) Run() (res *traffic.Result, err error)

Jump to

Keyboard shortcuts

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