ByteLimiter abstracts byte-based throttling for downloads.
| 73 | |
| 74 | // ByteLimiter abstracts byte-based throttling for downloads. |
| 75 | type ByteLimiter interface { |
| 76 | WaitN(ctx context.Context, n int64) error |
| 77 | } |
| 78 | |
| 79 | // RuntimeConfig carries network and downloader tuning knobs. |
| 80 | // Fields used by the downloader getters fall into two groups: |
no outgoing calls
no test coverage detected