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.
New creates a tunnel with a public URL and returns a listener for incoming
connections on that URL. Connections are made over the wireguard protocol.
Tunnel configuration is cached in the user's config directory. Successive
calls to New will always use the same URL. If multiple public URLs in
parallel are required, use NewWithConfig.
type Config struct {
Version tunnelsdk.TunnelVersion `json:"version"`
PrivateKey device.NoisePrivateKey `json:"private_key"`
PublicKey device.NoisePublicKey `json:"public_key"`
Tunnel Node `json:"tunnel"`
// Used in testing. Normally this is nil, indicating to use DefaultClient. HTTPClient *http.Client `json:"-"`
}
type Node struct {
ID int `json:"id"`
RegionID int `json:"region_id"`
HostnameHTTPS string `json:"hostname_https"`
AvgLatency time.Duration `json:"-"`
}