func NewRetryOption(attempts int64, delay, timeout time.Duration) RetryOption {
	return RetryOption{
		Attempts: attempts,
		Delay:    delay,
		Timeout:  timeout,
	}
}
NewRetryOption returns RetryOption
package common
import (
	"errors"
	"fmt"
	"time"
)
const (
	DefaultAttempts int64 = 10
	DefaultDelay          = 500 * time.Millisecond
	DefaultTimeout        = 10 * time.Second
)
type RetryOption struct {
	Attempts int64
	Delay    time.Duration
	Timeout  time.Duration
}