MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / GetFreeAssets

Function GetFreeAssets

internal/fab/scraper.go:167–173  ·  view source on GitHub ↗

GetFreeAssets is the package-level convenience entrypoint that matches the integration shape requested by the bot runtime.

(ctx context.Context, retries int)

Source from the content-addressed store, hash-verified

165// GetFreeAssets is the package-level convenience entrypoint that matches the
166// integration shape requested by the bot runtime.
167func GetFreeAssets(ctx context.Context, retries int) ([]Asset, *DeadlineInfo, error) {
168 source, err := NewBrowserSource()
169 if err != nil {
170 return nil, nil, err
171 }
172 return NewScraper(source).WithRetries(retries).GetFreeAssets(ctx)
173}
174
175func (s *Scraper) WithRetries(retries int) *Scraper {
176 if s == nil {

Callers

nothing calls this directly

Calls 4

NewBrowserSourceFunction · 0.85
NewScraperFunction · 0.85
WithRetriesMethod · 0.80
GetFreeAssetsMethod · 0.65

Tested by

no test coverage detected