output

package
v0.3.0-rc.2.0...-51e5094 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bullet

func Bullet(text string)

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 Paragraph

func Paragraph(text string)

func PressEnterToContinue

func PressEnterToContinue(text string) error

func Progress

func Progress(key string, perc float64, eta float64, msg string)

Progress logs a progress type event

func ResultItem

func ResultItem(result ResultItemData)

ResultItem logs a progress type event

func ResultSummary

func ResultSummary(result ResultSummaryData)

func SectionTitle

func SectionTitle(text string)

SectionTitle is the title of a section

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
}

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

type ResultSummaryData

type ResultSummaryData struct {
	TotalTests         int64
	TotalDataUsageUp   float64
	TotalDataUsageDown float64
	TotalNetworks      int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL