Documentation
¶
Index ¶
- Variables
- 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 GenerateMirrorListByPredefined(osType int) (mirrors []string)
- func GetFullMirrorURL(mirror define.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 ¶
View Source
var BUILDIN_ALPINE_MIRRORS = GenerateMirrorListByPredefined(define.TYPE_LINUX_DISTROS_ALPINE)
View Source
var BUILDIN_CENTOS_MIRRORS = GenerateMirrorListByPredefined(define.TYPE_LINUX_DISTROS_CENTOS)
View Source
var BUILDIN_DEBIAN_MIRRORS = GenerateMirrorListByPredefined(define.TYPE_LINUX_DISTROS_DEBIAN)
View Source
var BUILDIN_UBUNTU_MIRRORS = GenerateMirrorListByPredefined(define.TYPE_LINUX_DISTROS_UBUNTU)
View Source
var BUILDIN_UBUNTU_PORTS_MIRRORS = GenerateMirrorListByPredefined(define.TYPE_LINUX_DISTROS_UBUNTU_PORTS)
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 define.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.