package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

Copy copies from the src reader to the dst writer.
NewLeakyBucket returns a new token bucket rate limiter.
NewQueue returns a new queue based rate limiter.
OptCopyBuffer sets the buffer for the copy.
OptCopyChunkSize sets the quantum portion of the rate.
OptCopyOnWrite sets the on write handler for the copy.
OptCopyRateBytes sets the bytes portion of the rate.
OptCopyRateQuantum sets the quantum portion of the rate.

# Constants

DefaultCopyChunkSizeBytes is the write chunk size in bytes.

# Structs

CopyOptions are options for the throttled copy.
LeakyBucket implements the token bucket rate limiting algorithm.
Queue is a simple implementation of a rate checker.
Token is an individual id's work.
Wait is a type that allows you to throttle actions with sleeps based on a desired rate.

# Interfaces

RateLimiter is a type that can be used as a rate limiter.

# Type aliases

CopyOption mutates CopyOptions.