Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReaderRetry ¶
type ReaderRetry struct {
// contains filtered or unexported fields
}
ReaderRetry is used to control the retry for the ReaderRetry. It is not thread-safe.
func NewReaderRetry ¶
func NewReaderRetry(cfg ReaderRetryConfig) (*ReaderRetry, error)
NewReaderRetry creates a new ReaderRetry instance.
type ReaderRetryConfig ¶
type ReaderRetryConfig struct { BackoffRollback time.Duration `toml:"backoff-rollback" json:"backoff-rollback"` BackoffMax time.Duration `toml:"backoff-max" json:"backoff-max"` // unexpose config BackoffMin time.Duration `json:"-"` BackoffJitter bool `json:"-"` BackoffFactor float64 `json:"-"` }
ReaderRetryConfig is the configuration used for binlog reader retry backoff. we always enable this now.
Click to show internal directories.
Click to hide internal directories.