MCPcopy
hub / github.com/rclone/rclone / Calculator

Interface Calculator

lib/pacer/pacer.go:23–27  ·  view source on GitHub ↗

Calculator is a generic calculation function for a Pacer.

Source from the content-addressed store, hash-verified

21
22// Calculator is a generic calculation function for a Pacer.
23type Calculator interface {
24 // Calculate takes the current Pacer state and returns the sleep time after which
25 // the next Pacer call will be done.
26 Calculate(state State) time.Duration
27}
28
29// Pacer is the primary type of the pacer package. It allows to retry calls
30// with a configurable delay in between.

Callers 3

NewFunction · 0.65
endCallMethod · 0.65
CalculateMethod · 0.65

Implementers 6

Defaultlib/pacer/pacers.go
ZeroDelayCalculatorlib/pacer/pacers.go
AzureIMDSlib/pacer/pacers.go
GoogleDrivelib/pacer/pacers.go
S3lib/pacer/pacers.go
logCalculatorfs/pacer.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…