sdk

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 5 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, maxRetryAfter time.Duration, abort func() bool, logger log.Logger) (err error)

Types

type RateLimitedError

type RateLimitedError struct {
	Status     string        // http status
	StatusCode int           // http status code
	RetryAfter time.Duration // retry after time
	Message    string        // detail error message
}

func (*RateLimitedError) Error

func (rle *RateLimitedError) Error() string

Directories

Path Synopsis
fdk

Jump to

Keyboard shortcuts

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