Documentation ¶ Index ¶ func RetryForError(api func() error, maxRetryCount int, maxRetryAfter time.Duration, ...) (err error) type RateLimitedError func (rle *RateLimitedError) Error() string 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 Source Files ¶ View all Source files error.goretry.go Directories ¶ Show internal Expand all Path Synopsis fdk freshdesk freshservice openai slack teams Click to show internal directories. Click to hide internal directories.