Documentation ¶
Index ¶
- func Bullet(text string)
- func MeasurementItem(msmt database.MeasurementURLNetwork, isFirst bool, isLast bool)
- func MeasurementJSON(j map[string]interface{})
- func MeasurementSummary(msmt MeasurementSummaryData)
- func Paragraph(text string)
- func PressEnterToContinue(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 database.MeasurementURLNetwork, 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)
func PressEnterToContinue ¶
func ResultSummary ¶
func ResultSummary(result ResultSummaryData)
Types ¶
type MeasurementSummaryData ¶
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 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.