Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchivalData ¶
type ArchivalData struct { // The server and client IP are here as well as in the containing struct // because happy eyeballs means that we may have a IPv4 control connection // causing a IPv6 connection to the test port or vice versa. ServerIP string ServerPort int ClientIP string ClientPort int // This is the only field that is really required. UUID string // These fields are here to enable analyses that don't require joining with tcp-info data. StartTime time.Time EndTime time.Time MeanThroughputMbps float64 Error string `json:",omitempty"` }
ArchivalData is the data saved by the C2S test. If a researcher wants deeper data, then they should use the UUID to get deeper data from tcp-info.
func ManageTest ¶
func ManageTest(ctx context.Context, controlConn protocol.Connection, s ndt.Server) (record *ArchivalData, err error)
ManageTest manages the c2s test lifecycle.
Click to show internal directories.
Click to hide internal directories.