Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetryCounter ¶
type RetryCounter struct {
// contains filtered or unexported fields
}
RetryCounter is a helper struct that ensure retrying for at least N times and not expire before time T
func DefaultRetryCounterFetchingRpc ¶
func DefaultRetryCounterFetchingRpc() *RetryCounter
DefaultRetryCounterFetchingRpc returns default counter, ensure at least retry for 5 times, minimum 10s
func NewRetryCounter ¶
func NewRetryCounter(expireAfterSecs int64, minRetry int8) *RetryCounter
func (*RetryCounter) Continue ¶
func (c *RetryCounter) Continue() bool
Click to show internal directories.
Click to hide internal directories.