MCPcopy
hub / github.com/SurgeDM/Surge / ByteLimiter

Interface ByteLimiter

internal/engine/types/config.go:75–77  ·  view source on GitHub ↗

ByteLimiter abstracts byte-based throttling for downloads.

Source from the content-addressed store, hash-verified

73
74// ByteLimiter abstracts byte-based throttling for downloads.
75type 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:

Callers 5

WaitNMethod · 0.65
downloadTaskMethod · 0.65
ReadMethod · 0.65

Implementers 3

MultiLimiterinternal/engine/multi_limiter.go
RateLimiterinternal/engine/rate_limiter.go
stubLimiterinternal/engine/single/downloader_test

Calls

no outgoing calls

Tested by

no test coverage detected