Documentation ¶
Index ¶
- func Bullet(text string)
- func MeasurementItem(msmt model.DatabaseMeasurementURLNetwork, isFirst bool, isLast bool)
- func MeasurementJSON(j map[string]interface{})
- func MeasurementSummary(msmt MeasurementSummaryData)
- func Paragraph(text string)
- func PressAnyKeyToContinue(text string) error
- func Progress(key string, perc float64, eta float64, msg string)
- func ResultItem(result ResultItemData)
- func ResultSummary(result ResultSummaryData)
- func SectionTitle(text string)
- type MeasurementSummaryData
- type ResultItemData
- type ResultSummaryData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MeasurementItem ¶
func MeasurementItem(msmt model.DatabaseMeasurementURLNetwork, isFirst bool, isLast bool)
MeasurementItem logs a progress type event
func MeasurementJSON ¶
func MeasurementJSON(j map[string]interface{})
MeasurementJSON prints the JSON of a measurement
func MeasurementSummary ¶
func MeasurementSummary(msmt MeasurementSummaryData)
MeasurementSummary emits the measurement summary
func PressAnyKeyToContinue ¶ added in v3.10.0
PressAnyKeyToContinue blocks until the user presses any key
func ResultSummary ¶
func ResultSummary(result ResultSummaryData)
ResultSummary emits the result summary
Types ¶
type MeasurementSummaryData ¶
type MeasurementSummaryData struct { TotalRuntime float64 TotalCount int64 AnomalyCount int64 DataUsageUp float64 DataUsageDown float64 ASN uint NetworkName string NetworkCountryCode string StartTime time.Time }
MeasurementSummaryData contains summary information on the measurement
type ResultItemData ¶
type ResultItemData struct { ID int64 Name string StartTime time.Time TestKeys string MeasurementCount uint64 MeasurementAnomalyCount uint64 Runtime float64 Country string NetworkName string ASN uint Done bool IsUploaded bool DataUsageDown float64 DataUsageUp float64 Index int TotalCount int }
ResultItemData is the metadata about a result
Click to show internal directories.
Click to hide internal directories.