Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDeadlineExceeded = errors.New("deadline exceeded")
)
Functions ¶
Types ¶
type TimeoutRetryer ¶
type TimeoutRetryer struct { DeadlineTimeout time.Duration AttemptTimeout time.Duration AttemptErrorHanlder func(err error) // contains filtered or unexported fields }
func NewRetryer ¶
func NewRetryer(f func() (interface{}, error), deadlineTimeout time.Duration) *TimeoutRetryer
func (*TimeoutRetryer) Do ¶
func (r *TimeoutRetryer) Do() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.