GetFreeAssets is the package-level convenience entrypoint that matches the integration shape requested by the bot runtime.
(ctx context.Context, retries int)
| 165 | // GetFreeAssets is the package-level convenience entrypoint that matches the |
| 166 | // integration shape requested by the bot runtime. |
| 167 | func 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 | |
| 175 | func (s *Scraper) WithRetries(retries int) *Scraper { |
| 176 | if s == nil { |
nothing calls this directly
no test coverage detected