package
1.64.0-Personal
Repository: https://github.com/dceldran/rclone.git
Documentation: pkg.go.dev

# Functions

CalculatorOption sets a Calculator for the new Pacer.
InvokerOption sets an InvokerFunc for the new Pacer.
IsRetryAfter returns true if the error or any of it's Cause's is an error returned by RetryAfterError.
MaxConnectionsOption sets the maximum connections number for the new Pacer.
New returns a Pacer with sensible defaults.
NewAmazonCloudDrive returns a new AmazonCloudDrive Calculator with default values.
NewAzureIMDS returns a new Azure IMDS calculator.
NewDefault creates a Calculator used by Pacer as the default.
NewGoogleDrive returns a new GoogleDrive Calculator with default values.
NewS3 returns a new S3 Calculator with default values.
NewTokenDispenser makes a pool of n tokens.
RetriesOption sets the retries number for the new Pacer.
RetryAfterError returns a wrapped error that can be used by Calculator implementations.

# Structs

AmazonCloudDrive is a specialized pacer for Amazon Drive It implements a truncated exponential backoff strategy with randomization.
AzureIMDS is a pacer for the Azure instance metadata service.
Default is a truncated exponential attack and decay.
GoogleDrive is a specialized pacer for Google Drive It implements a truncated exponential backoff strategy with randomization.
Pacer is the primary type of the pacer package.
S3 implements a pacer compatible with our expectations of S3, where it tries to not delay at all between successful calls, but backs off in the default fashion in response to any errors.
State represents the public Pacer state that will be passed to the configured Calculator.
TokenDispenser is for controlling concurrency.
ZeroDelayCalculator is a Calculator that never delays.

# Interfaces

AmazonCloudDriveOption is the interface implemented by all options for the AmazonCloudDrive Calculator.
Calculator is a generic calculation function for a Pacer.
DefaultOption is the interface implemented by all options for the Default Calculator.
GoogleDriveOption is the interface implemented by all options for the GoogleDrive Calculator.
S3Option is the interface implemented by all options for the S3 Calculator.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
InvokerFunc is the signature of the wrapper function used to invoke the target function in Pacer.
No description provided by the author
No description provided by the author
Option can be used in New to configure the Pacer.
Paced is a function which is called by the Call and CallNoRetry methods.