Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func (*Chain) Add ¶
func (c *Chain) Add(strategies ...orchestrator.RetryStrategy)
func (*Chain) ShouldRetry ¶
func (c *Chain) ShouldRetry(ctx context.Context, request orchestrator.RetryRequest) bool
type FixedStrategy ¶
type FixedStrategy struct {
// contains filtered or unexported fields
}
func NewFixedStrategy ¶
func NewFixedStrategy(params FixedStrategyParams) *FixedStrategy
func (*FixedStrategy) ShouldRetry ¶
func (s *FixedStrategy) ShouldRetry(ctx context.Context, request orchestrator.RetryRequest) bool
type FixedStrategyParams ¶
type FixedStrategyParams struct {
ShouldRetry bool
}
Click to show internal directories.
Click to hide internal directories.