Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Retry int
Idempotent bool
OnSuccess func(context.Context)
OnFailure func(context.Context)
OnRetry func(context.Context) time.Duration
// contains filtered or unexported fields
}
Config for cluster.
func FailfastConfig ¶
FailfastConfig for cluster.
func FailoverConfig ¶
FailoverConfig for cluster.
func FailtryConfig ¶
FailtryConfig for cluster.
type Option ¶
type Option func(*Config)
Option for cluster config.
func WithIdempotent ¶
WithIdempotent returns an idempotent Option for cluster config.
func WithMaxInterval ¶
WithMaxInterval returns a retry maxInterval Option for cluster config.
func WithMinInterval ¶
WithMinInterval returns a retry minInterval Option for cluster config.
Click to show internal directories.
Click to hide internal directories.