Versions in this module Expand all Collapse all v0 v0.1.0 Sep 22, 2023 Changes in this version + func LimitBackend(be restic.Backend, l Limiter) restic.Backend + func WrapBackendConstructor(constructor func(ctx context.Context, cfg C) (B, error)) func(ctx context.Context, cfg C, lim Limiter) (restic.Backend, error) + type Limiter interface + Downstream func(r io.Reader) io.Reader + DownstreamWriter func(r io.Writer) io.Writer + Transport func(http.RoundTripper) http.RoundTripper + Upstream func(r io.Reader) io.Reader + UpstreamWriter func(w io.Writer) io.Writer + func NewStaticLimiter(l Limits) Limiter + type Limits struct + DownloadKb int + UploadKb int