Documentation
¶
Index ¶
- func BuildHTTPSURL(url string) string
- func BuildHTTPURL(url string) string
- func BuildListenAddress(host, port string) string
- func GetFullMirrorURL(mirror distro.URLWithAlias) string
- func GetGeoMirrorUrlsByMode(mode int) (mirrors []string)
- func GetMirrorURLByAliases(osType int, alias string) string
- func GetPredefinedConfiguration(proxyMode int) (string, *regexp.Regexp)
- func GetUbuntuMirrorUrlsByGeo() (mirrors []string, err error)
- func GetUbuntuMirrorUrlsByGeoCtx(ctx context.Context) (mirrors []string, err error)
- type ListenAddressTemplateData
- type URLTemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHTTPSURL ¶ added in v0.7.0
BuildHTTPSURL constructs an HTTPS URL.
func BuildHTTPURL ¶ added in v0.7.0
BuildHTTPURL constructs an HTTP URL.
func BuildListenAddress ¶ added in v0.7.0
BuildListenAddress constructs a listen address (host:port).
func GetFullMirrorURL ¶
func GetFullMirrorURL(mirror distro.URLWithAlias) string
func GetGeoMirrorUrlsByMode ¶
func GetMirrorURLByAliases ¶
func GetUbuntuMirrorUrlsByGeo ¶
GetUbuntuMirrorUrlsByGeo fetches the geo-localized mirrors list using a background context with a fixed timeout. Prefer GetUbuntuMirrorUrlsByGeoCtx when a caller-provided context is available (e.g. inside benchmark flow).
Types ¶
type ListenAddressTemplateData ¶ added in v0.7.0
ListenAddressTemplateData holds data for listen address building (kept for API compatibility).
type URLTemplateData ¶ added in v0.7.0
type URLTemplateData struct {
URL string
}
URLTemplateData holds data for URL building (kept for API compatibility).
Click to show internal directories.
Click to hide internal directories.