latency_gen

command
v0.0.0-...-a095ce5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

latency_gen fetches Azure network round-trip latency statistics and Azure region data from Microsoft Learn and writes a single generated Go source file used by the region- selection plugin.

The generated file (zz_generated.latency.go) contains two package-level variables:

  • azureRegionLatency: P50 RTT matrix (ms) between Azure regions
  • regionCluster: mapping of each region's programmatic name to its geographic cluster

Sources:

Usage:

go run ./hack/code/latency_gen/main.go
go run ./hack/code/latency_gen/main.go --output ./internal/scanners/plugins/region/zz_generated.latency.go

Jump to

Keyboard shortcuts

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