Documentation ¶ Index ¶ Variables func NewCachedFetcher(backend Backend) *cachedFetcher type Backend type Direct func (Direct) Fetch(ctx context.Context, softwareId string) (rs releases.Releases, err error) 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) Source Files ¶ View all Source files cached.go fetch.go Directories ¶ Show internal Expand all Path Synopsis internal apache errors github goruntime hashicorp httpcli maven scrapeutil Click to show internal directories. Click to hide internal directories.