config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URLCount   int
	Duration   time.Duration
	Verbose    bool
	SaveToFile bool
	OutputFile string
	Provider   string
	Providers  []string // List of providers to test with
	ServerMode string   // "specific", "random", or "auto" (best available)
}

Config holds the configuration for the speed test

func NewConfig

func NewConfig() *Config

NewConfig creates a new Config with default values

func (*Config) LoadFromFlags

func (c *Config) LoadFromFlags()

LoadFromFlags loads configuration from command line flags

Jump to

Keyboard shortcuts

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