types

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL