sdk

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetryForError

func RetryForError(api func() error, maxRetryCount int, abort func() bool, logger log.Logger) (err error)

Types

type NetError added in v1.0.11

type NetError struct {
	Err error
	// contains filtered or unexported fields
}

func NewNetError added in v1.0.11

func NewNetError(err error, retryAfter ...time.Duration) *NetError

func (*NetError) Error added in v1.0.11

func (ne *NetError) Error() string

func (*NetError) RetryAfter added in v1.0.11

func (ne *NetError) RetryAfter() time.Duration

func (*NetError) Unwrap added in v1.0.11

func (ne *NetError) Unwrap() error

type RetryableError added in v1.0.11

type RetryableError interface {
	RetryAfter() time.Duration
}

Directories

Path Synopsis
fdk

Jump to

Keyboard shortcuts

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