compat

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: 16 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 compat

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(h *http.HTTP, db *gorm.DB)

Types

type LatestRequest

type LatestRequest struct{}

type LatestResponse

type LatestResponse struct {
	ID                 uuid.UUID                `json:"id"`
	Service            string                   `json:"service"`
	Ping               *float64                 `json:"ping"`
	Download           *int64                   `json:"download"`
	Upload             *int64                   `json:"upload"`
	DownloadBits       *int64                   `json:"download_bits,omitempty"`
	UploadBits         *int64                   `json:"upload_bits,omitempty"`
	DownloadBitsHuman  *string                  `json:"download_bits_human,omitempty"`
	UploadBitsHuman    *string                  `json:"upload_bits_human,omitempty"`
	DownloadBytes      *int                     `json:"download_bytes"`
	UploadBytes        *int                     `json:"upload_bytes"`
	DownloadBytesHuman *string                  `json:"download_bytes_human,omitempty"`
	UploadBytesHuman   *string                  `json:"upload_bytes_human,omitempty"`
	Benchmarks         any                      `json:"benchmarks"`
	Healthy            bool                     `json:"healthy"`
	Status             string                   `json:"status"`
	Scheduled          bool                     `json:"scheduled"`
	DispatchedBy       any                      `json:"dispatched_by"`
	Comments           any                      `json:"comments"`
	Data               *results.SpeedtestOutput `json:"data"`
	CreatedAt          string                   `json:"created_at"`
	UpdatedAt          string                   `json:"updated_at"`
}

type LatestResponseEnvelope

type LatestResponseEnvelope struct {
	Data *LatestResponse `json:"data"`
}

LatestResponseEnvelope matches Laravel's default JSON resource wrapper.

Jump to

Keyboard shortcuts

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