mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-06 05:30:57 +00:00
Grab downloader
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
package grab
|
||||
|
||||
import "context"
|
||||
|
||||
// RateLimiter is an interface that must be satisfied by any third-party rate
|
||||
// limiters that may be used to limit download transfer speeds.
|
||||
//
|
||||
// A recommended token bucket implementation can be found at
|
||||
// https://godoc.org/golang.org/x/time/rate#Limiter.
|
||||
type RateLimiter interface {
|
||||
WaitN(ctx context.Context, n int) (err error)
|
||||
}
|
||||
Reference in New Issue
Block a user