Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Init() error
- func (c *Client) IsAvailable() bool
- func (c *Client) MeasureDownload(speedChan chan<- float64) error
- func (c *Client) MeasureJitter(samples int) (time.Duration, error)
- func (c *Client) MeasureLatency() (time.Duration, error)
- func (c *Client) MeasureUpload(duration time.Duration, speedChan chan<- float64) error
- func (c *Client) Name() string
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoServers = errors.New("no servers available") ErrInternet = errors.New("internet error. Please try again later") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a LibreSpeed speed test client
func (*Client) IsAvailable ¶
IsAvailable checks if LibreSpeed is accessible
func (*Client) MeasureDownload ¶
MeasureDownload measures download speed (implements Provider interface)
func (*Client) MeasureLatency ¶
MeasureLatency measures the round-trip time (implements Provider interface)
func (*Client) MeasureUpload ¶
MeasureUpload measures upload speed (implements Provider interface)
Click to show internal directories.
Click to hide internal directories.