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 ¶ added in v0.7.0
BuildFullURL constructs a full URL with scheme, host, path, and optional query using templates
func BuildHTTPSURL ¶ added in v0.7.0
BuildHTTPSURL constructs an HTTPS URL using templates
func BuildHTTPURL ¶ added in v0.7.0
BuildHTTPURL constructs an HTTP URL using templates
func BuildListenAddress ¶ added in v0.7.0
BuildListenAddress constructs a listen address using templates
func BuildPathWithQuery ¶ added in v0.7.0
BuildPathWithQuery constructs a path with query using templates
func GetFullMirrorURL ¶
func GetFullMirrorURL(mirror distro.UrlWithAlias) string
func GetGeoMirrorUrlsByMode ¶
func GetMirrorURLByAliases ¶
Types ¶
type ListenAddressTemplateData ¶ added in v0.7.0
ListenAddressTemplateData holds data for listen address template execution
type PathTemplateData ¶ added in v0.7.0
PathTemplateData holds data for path template execution
Click to show internal directories.
Click to hide internal directories.