Documentation ¶
Overview ¶
Package derpmap provides the tailscale derp map implementation.
Index ¶
Constants ¶
View Source
const ( TailscaleDERPMapURL = "https://login.tailscale.com/derpmap/default" TailescaleRegionKey = "Regions" // key containing the RegionInfo )
Variables ¶
View Source
var DERPMapRaw embed.FS
Functions ¶
This section is empty.
Types ¶
type DERPMap ¶
DERPMap is a map of RegionID to Region
var SavedDERPMap DERPMap // SavedDERPMap is the DERP map that is embedded from derpmap.json at compile time
func GetTailcaleDERPMap ¶
GetTailscaleDERPMap fetches the Tailscale public DERP map and loads it into a DERPMap struct
func (DERPMap) GetRegionCodeMapping ¶
Generates a regionCode: Region mapping for the DERPMap
Click to show internal directories.
Click to hide internal directories.