results

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: LGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeobfuscateULID

func DeobfuscateULID(obfuscated string) (string, error)

DeobfuscateULID reverses ULID obfuscation

func DrawPNG

func DrawPNG(w http.ResponseWriter, r *http.Request)

func Initialize

func Initialize(c *config.Config)

func JSONResult

func JSONResult(w http.ResponseWriter, r *http.Request)

JSONResult handles GET /results/json?id=X and returns test results as JSON

func ObfuscateULID

func ObfuscateULID(id string) string

ObfuscateULID transforms a ULID string to its obfuscated (base64) form

func Record

func Record(w http.ResponseWriter, r *http.Request)

func ResolveID

func ResolveID(id string) string

ResolveID takes an ID string and returns the database ULID. It tries the raw input first, then attempts deobfuscation.

func Stats

func Stats(w http.ResponseWriter, r *http.Request)

Types

type IPInfoResponse

type IPInfoResponse struct {
	IP           string `json:"ip"`
	Hostname     string `json:"hostname"`
	City         string `json:"city"`
	Region       string `json:"region"`
	Country      string `json:"country"`
	Location     string `json:"loc"`
	Organization string `json:"org"`
	Postal       string `json:"postal"`
	Timezone     string `json:"timezone"`
	Readme       string `json:"readme"`
}

type JSONResponse

type JSONResponse struct {
	Timestamp string `json:"timestamp"`
	Download  string `json:"download"`
	Upload    string `json:"upload"`
	Ping      string `json:"ping"`
	Jitter    string `json:"jitter"`
	ISPInfo   string `json:"ispinfo"`
}

JSONResponse is the structure returned by the JSON results endpoint

type Result

type Result struct {
	ProcessedString string         `json:"processedString"`
	RawISPInfo      IPInfoResponse `json:"rawIspInfo"`
}

type StatsData

type StatsData struct {
	NoPassword bool
	LoggedIn   bool
	Data       []schema.TelemetryData
}

Jump to

Keyboard shortcuts

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