speedtest

package
v2.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package speedtest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(
	h *http.HTTP,
	db *gorm.DB,
	host *local.Host,
	runner *workflow.WorkflowService,
) error

Types

type DeleteRequest added in v2.2.4

type DeleteRequest struct {
	ID uuid.UUID `path:"id" param:"id"`
}

type GetRequest

type GetRequest struct {
	ID uuid.UUID `path:"id" param:"id" description:"The id of the result"`
}

type GetResponse added in v2.3.0

type GetResponse struct {
	Result
	Status *WorkflowStatus `json:"status,omitempty"`
}

type ListRequest

type ListRequest struct {
	Page  int `query:"page"  default:"1"  description:"The page number of the results"`
	Limit int `query:"limit" default:"25" description:"The number of rows per page"`
}

type Result added in v2.4.1

type Result struct {
	ID         uuid.UUID                `json:"id"`
	CreatedAt  time.Time                `json:"created_at"`
	UpdatedAt  time.Time                `json:"updated_at"`
	DeletedAt  gorm.DeletedAt           `json:"deleted_at"`
	Ping       *float64                 `json:"ping"`
	Download   *int64                   `json:"download"`
	Upload     *int64                   `json:"upload"`
	ServerID   *int                     `json:"server_id"`
	ServerHost *string                  `json:"server_host"`
	ServerName *string                  `json:"server_name"`
	URL        *string                  `json:"url"`
	Error      *string                  `json:"error,omitempty"`
	Complete   bool                     `json:"complete"`
	Raw        *results.SpeedtestOutput `json:"raw,omitempty"`
}

type RunResponse

type RunResponse struct {
	ID uuid.UUID `json:"id"`
}

type TimeseriesRequest

type TimeseriesRequest struct {
	Period duration.StringDuration `query:"period" description:"The time range to pick from" validate:"timeseries_period" default:"24h"`
}

type WorkflowStatus added in v2.3.0

type WorkflowStatus struct {
	Version int            `json:"version"`
	Steps   []WorkflowStep `json:"steps"`
}

type WorkflowStep added in v2.3.0

type WorkflowStep struct {
	Name        string              `json:"name"`
	Attempts    int                 `json:"attempts"`
	StartedAt   time.Time           `json:"started_at"`
	CompletedAt time.Time           `json:"completed_at"`
	Status      workflow.StepStatus `json:"status"`
	Error       *string             `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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