collector

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReleaseUrl  string = "https://download.blender.org/release/"
	DownloadUrl string = "https://builder.blender.org/download"
)
View Source
const (
	WindowsPlatformRegex string = "(blender-.+win.+64.+zip)"
	LinuxPlatformRegex   string = "(blender-.+lin.+64.+tar)"
	MacPlatformRegex     string = "(blender-.+(macos|darwin).+dmg)"
	ArmMacPlatformRegex  string = "(arm64)"
	VersionNumberRegex   string = "[0-9]+([.][0-9]+)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config) *Collector

func (*Collector) CollectStable

func (c *Collector) CollectStable() *store.Store

type Config

type Config struct {
	Proxy           string
	UserAgent       string
	Parallelism     int
	RandomDelay     time.Duration
	OldestSupported float32
}

func NewConfig

func NewConfig(proxyUrl string, agent string, parallelism int, delay string) (*Config, error)

Jump to

Keyboard shortcuts

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