Documentation
¶
Index ¶
- func BuildFullURL(scheme, host, path, query string) (string, error)
- func BuildHTTPSURL(url string) (string, error)
- func BuildHTTPURL(url string) (string, error)
- func BuildListenAddress(host, port string) (string, error)
- func BuildPathWithQuery(path, query string) (string, error)
- 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)
- type ListenAddressTemplateData
- type PathTemplateData
- type URLTemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFullURL ¶
BuildFullURL constructs a full URL with scheme, host, path, and optional query using templates
func BuildHTTPSURL ¶
BuildHTTPSURL constructs an HTTPS URL using templates
func BuildHTTPURL ¶
BuildHTTPURL constructs an HTTP URL using templates
func BuildListenAddress ¶
BuildListenAddress constructs a listen address using templates
func BuildPathWithQuery ¶
BuildPathWithQuery constructs a path with query using templates
func GetFullMirrorURL ¶
func GetFullMirrorURL(mirror distro.UrlWithAlias) string
func GetGeoMirrorUrlsByMode ¶
func GetMirrorURLByAliases ¶
Types ¶
type ListenAddressTemplateData ¶
ListenAddressTemplateData holds data for listen address template execution
type PathTemplateData ¶
PathTemplateData holds data for path template execution
Click to show internal directories.
Click to hide internal directories.