stats

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Download

type Download struct {
	// contains filtered or unexported fields
}

Download represents the download statistics.

type Stats

type Stats interface {
	// GetDownloads returns the download statistics.
	GetDownloads() []*Download

	// CollectClientMetrics collects the client metrics and resets the metrics.
	CollectClientMetrics(ctx context.Context, downloader string, fileSizeLevel backend.FileSizeLevel) error

	// ResetClientMetrics resets the client metrics.
	ResetClientMetrics(ctx context.Context) error

	// PrettyPrint prints the statistics in a pretty format.
	PrettyPrint() error
}

Stats represents the statistics of the benchmark.

func New

func New(namespace string) Stats

New creates a new Stats instance.

Jump to

Keyboard shortcuts

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