Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reader with limiter
func NewReaderWithContext ¶
func NewReaderWithContext(ctx context.Context, r io.Reader, workDir string, bw uint64) (*Reader, error)
NewReaderWithContext returns a reader that implements io.Reader with rate limiting.
func (*Reader) RefreshLimiter ¶
RefreshLimiter refresh limiter
func (*Reader) RunRefresh ¶
RunRefresh refresh limiter regularly
Click to show internal directories.
Click to hide internal directories.