Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Is429Or5XXError ¶
Types ¶
type CoolDownProvider ¶
type ExpCoolDown ¶
type ExpCoolDown struct {
// contains filtered or unexported fields
}
func (*ExpCoolDown) GetNextWaitTime ¶
func (c *ExpCoolDown) GetNextWaitTime() time.Duration
func (*ExpCoolDown) Reset ¶
func (c *ExpCoolDown) Reset()
type NoCoolDown ¶
type NoCoolDown struct{}
func (*NoCoolDown) GetNextWaitTime ¶
func (c *NoCoolDown) GetNextWaitTime() time.Duration
func (*NoCoolDown) Reset ¶
func (c *NoCoolDown) Reset()
type ProtonClientRetryWrapper ¶
type ProtonClientRetryWrapper[T any] struct { // contains filtered or unexported fields }
func NewClientRetryWrapper ¶
func NewClientRetryWrapper[T any](client T, coolDown CoolDownProvider) *ProtonClientRetryWrapper[T]
func (*ProtonClientRetryWrapper[T]) DidEncounter429or5xx ¶
func (p *ProtonClientRetryWrapper[T]) DidEncounter429or5xx() bool
Click to show internal directories.
Click to hide internal directories.