collector

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// StableVersions 返回稳定版本列表
	StableVersions() (items []*version.Version, err error)
	// UnstableVersions 返回非稳定版本列表
	UnstableVersions() (items []*version.Version, err error)
	// ArchivedVersions 返回已归档版本列表
	ArchivedVersions() (items []*version.Version, err error)
	// AllVersions 返回所有版本列表
	AllVersions() (items []*version.Version, err error)
}

Collector 版本信息采集器

func NewCollector

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

NewCollector 返回首个可用的采集器实例

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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