fetch

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EntryLifetime = 30 * time.Minute
View Source
var NowImpl func() time.Time = time.Now

Functions

func NewCachedFetcher

func NewCachedFetcher(backend Backend) *cachedFetcher

Types

type Backend added in v0.1.0

type Backend interface {
	Fetch(ctx context.Context, softwareId string) (rs releases.Releases, err error)
}

type Direct

type Direct struct{}

func (Direct) Fetch

func (Direct) Fetch(ctx context.Context, softwareId string) (rs releases.Releases, err error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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