package backoff
Import Path
google.golang.org/grpc/backoff (on go.dev)
Dependency Relation
imports one package, and imported by 2 packages
Involved Source Files
Package backoff provides configuration options for backoff.
More details can be found at:
https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md.
All APIs in this package are experimental.
Package-Level Type Names (only one, which is exported)
Config defines the configuration options for backoff.
BaseDelay is the amount of time to backoff after the first failure.
Jitter is the factor with which backoffs are randomized.
MaxDelay is the upper bound of backoff delay.
Multiplier is the factor with which to multiply backoffs after a
failed retry. Should ideally be greater than 1.
var DefaultConfig
Package-Level Variables (only one, which is exported)
DefaultConfig is a backoff configuration with the default values specfied
at https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md.
This should be useful for callers who want to configure backoff with
non-default values only for a subset of the options.
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)