collector

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OriginalOfficialDownloadPageURL Golang official site download page URL
	OriginalOfficialDownloadPageURL = "https://golang.org/dl/"
	// OfficialDownloadPageURL Golang official site download page URL
	OfficialDownloadPageURL = "https://go.dev/dl/"
	// CNDownloadPageURL China mirror site download page URL
	CNDownloadPageURL = "https://golang.google.cn/dl/"
)

official collector

View Source
const (
	// AliYunDownloadPageURL Alibaba cloud mirror site URL
	AliYunDownloadPageURL = "https://mirrors.aliyun.com/golang/"
	// HUSTDownloadPageURL Huazhong University of Science and Technology mirror site URL
	HUSTDownloadPageURL = "https://mirrors.hust.edu.cn/golang/"
	// NJUDownloadPageURL Nanjing University mirror site URL
	NJUDownloadPageURL = "https://mirrors.nju.edu.cn/golang/"
)

Nginx fancyindex collector

View Source
const (
	// USTCDownloadPageURL University of Science and Technology of China mirror site URL
	USTCDownloadPageURL = "https://mirrors.ustc.edu.cn/golang/"
)

Nginx autoindex collector

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Name Collector name
	Name() string
	// StableVersions Return all stable versions
	StableVersions() (items []*version.Version, err error)
	// UnstableVersions Return all stable versions
	UnstableVersions() (items []*version.Version, err error)
	// ArchivedVersions Return all archived versions
	ArchivedVersions() (items []*version.Version, err error)
	// AllVersions Return all versions
	AllVersions() (items []*version.Version, err error)
}

Collector Version information collector

func NewCollector

func NewCollector(urls ...string) (c Collector, err error)

NewCollector Returns the first available collector instance official|https://go.dev/dl/,fancyindex|https://mirrors.aliyun.com/golang/,autoindex|https://mirrors.ustc.edu.cn/golang/

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL