Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // UDPURLPrefix is the URL prefix for triggering UDP load. UDPURLPrefix = "udp://" // UDPStatusOK is the map key on success. UDPStatusOK = "OK" )
View Source
var UDPTimeOutDefaultValue = 750 * time.Millisecond
Functions ¶
This section is empty.
Types ¶
type RunnerOptions ¶
type RunnerOptions struct { periodic.RunnerOptions UDPOptions // Need to call Init() to initialize }
RunnerOptions includes the base RunnerOptions plus UDP specific options.
type RunnerResults ¶
type RunnerResults struct { periodic.RunnerResults UDPOptions RetCodes UDPResultMap SocketCount int BytesSent int64 BytesReceived int64 // contains filtered or unexported fields }
RunnerResults is the aggregated result of an UDPRunner. Also is the internal type used per thread/goroutine.
func RunUDPTest ¶
func RunUDPTest(o *RunnerOptions) (*RunnerResults, error)
RunUDPTest runs a UDP test and returns the aggregated stats. Some refactoring to avoid copy-pasta between the now 3 runners would be good.
type UDPClient ¶
type UDPClient struct {
// contains filtered or unexported fields
}
UDPClient is the client used for UDP echo testing.
func NewUDPClient ¶
func NewUDPClient(o *UDPOptions) (*UDPClient, error)
NewUDPClient creates and initialize and returns a client based on the UDPOptions.
type UDPOptions ¶
type UDPOptions struct { Destination string Payload []byte // what to send (and check) ReqTimeout time.Duration }
UDPOptions are options to the UDPClient.
type UDPResultMap ¶
Click to show internal directories.
Click to hide internal directories.