Documentation ¶
Index ¶
- Variables
- func AnalyzeTest(ctx context.Context, c shared.Config) (err error)
- func DeleteTests(ctx context.Context, c shared.Config) (err error)
- func DownloadTest(ctx context.Context, c shared.Config) (err error)
- func GenerateFormatString(columnCount int) (fs string)
- func ListTests(ctx context.Context, c shared.Config) (err error)
- func Listen(ctx context.Context, c shared.Config) (err error)
- func MakeCSV(ctx context.Context, c shared.Config) (err error)
- func PrintColumns(style lipgloss.Style, columns ...column)
- func PrintError(err error)
- func PrintErrorString(err string)
- func PrintPercentiles(style lipgloss.Style, tag string, dps []int64, c shared.Config)
- func PrintPercentilesHeader(style lipgloss.Style, tag string, dps []int64, c shared.Config)
- func PrintTError(err shared.TError)
- func RunTest(ctx context.Context, c shared.Config) (err error)
- func Stop(ctx context.Context, c shared.Config) (err error)
- type HeaderField
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ListHeaders = []HeaderField{IntNumber, ID, HumanTime} BandwidthHeaders = []HeaderField{Created, Local, Remote, TX, ErrCount, DroppedPackets, MemoryUsage, CPUUsage} LatencyHeaders = []HeaderField{Created, Local, Remote, RMSH, RMSL, TTFBH, TTFBL, TX, TXCount, ErrCount, DroppedPackets, MemoryUsage, CPUUsage} FullDataPointHeaders = []HeaderField{Created, Local, Remote, RMSH, RMSL, TTFBH, TTFBL, TX, TXCount, ErrCount, DroppedPackets, MemoryUsage, CPUUsage} RealTimeBandwidthHeaders = []HeaderField{ErrCount, TXCount, TXH, TXL, TXT, DroppedPackets, MemoryHigh, MemoryLow, CPUHigh, CPULow} RealTimeLatencyHeaders = []HeaderField{ErrCount, TXCount, TXH, TXL, TXT, RMSH, RMSL, TTFBH, TTFBL, DroppedPackets, MemoryHigh, MemoryLow, CPUHigh, CPULow} )
View Source
var ( HeaderStyle = lipgloss.NewStyle().Background(lipgloss.Color("#F2F2F2")).Foreground(lipgloss.Color("#000000")) BaseStyle = lipgloss.NewStyle().Background(lipgloss.Color("#000000")).Foreground(lipgloss.Color("#F2F2F2")) SuccessStyle = lipgloss.NewStyle().Background(lipgloss.Color("#009900")).Foreground(lipgloss.Color("#F2F2F2")) WarningStyle = lipgloss.NewStyle().Background(lipgloss.Color("#999900")).Foreground(lipgloss.Color("#F2F2F2")) ErrorStyle = lipgloss.NewStyle().Background(lipgloss.Color("#AA0000")).Foreground(lipgloss.Color("#FFFFFF")) )
Functions ¶
func GenerateFormatString ¶
func PrintColumns ¶
func PrintError ¶
func PrintError(err error)
func PrintErrorString ¶
func PrintErrorString(err string)
func PrintPercentiles ¶
func PrintPercentilesHeader ¶
func PrintTError ¶
Types ¶
type HeaderField ¶
type HeaderField int
const ( IntNumber HeaderField = iota Created Local Remote RMSH RMSL TTFBH TTFBL TX TXH TXL TXT TXCount ErrCount DroppedPackets MemoryUsage MemoryHigh MemoryLow CPUUsage CPUHigh CPULow ID HumanTime )
Click to show internal directories.
Click to hide internal directories.