fetcher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

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

Fetcher выполняет HTTP запросы с rate limiting

func New

func New(cfg *config.Config) *Fetcher

New создает новый HTTP fetcher с rate limiting

func (*Fetcher) Close

func (f *Fetcher) Close()

Close закрывает fetcher и освобождает ресурсы

func (*Fetcher) GetModuleGoVersion

func (f *Fetcher) GetModuleGoVersion(ctx context.Context, modulePath, moduleVersion string) (*version.Version, error)

GetModuleGoVersion получает требуемую версию Go для модуля

func (*Fetcher) GetModuleVersions

func (f *Fetcher) GetModuleVersions(ctx context.Context, modulePath string) ([]string, error)

GetModuleVersions получает список версий модуля

Jump to

Keyboard shortcuts

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