Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy interface {
Wait() error
}
Strategy is used to avoid flooding the server with requests by adding a backoff when clients are waiting for the delta request to be completed.
func DefaultBackoff ¶
func DefaultBackoff() Strategy
DefaultBackoff returns a sensible default Strategy (exponential with an upper bound).
Click to show internal directories.
Click to hide internal directories.