Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultWebSocketHandshakeTimeout is the default timeout used by the client // for the WebSocket handshake. DefaultWebSocketHandshakeTimeout = 5 * time.Second // DefaultStreams is the default number of streams for a new client. DefaultStreams = 5 )
Variables ¶
View Source
var ( // ErrNoTargets is returned if all Locate targets have been tried. ErrNoTargets = errors.New("no targets available") )
Functions ¶
This section is empty.
Types ¶
type NDTMClient ¶
type NDTMClient struct { ClientName string ClientVersion string Dialer *websocket.Dialer Server string ServiceURL *url.URL Locate Locator Scheme string NumStreams int Length time.Duration Delay time.Duration CongestionControl string MeasurementID string OutputPath string ResultsByUUID map[string]*results.NDTMResult // contains filtered or unexported fields }
func New ¶
func New(clientName, clientVersion string) *NDTMClient
func (*NDTMClient) Download ¶
func (c *NDTMClient) Download(ctx context.Context)
func (*NDTMClient) Upload ¶
func (c *NDTMClient) Upload(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.