Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleErrorResponse ¶
HandleErrorResponse checks an HTTP response for errors and returns a user-friendly error.
Types ¶
type AuthExpiredError ¶ added in v0.5.1
type AuthExpiredError struct {
Detail string
}
AuthExpiredError indicates the API token is invalid, expired, or revoked. Detail preserves the original API response body for debugging.
func (*AuthExpiredError) Error ¶ added in v0.5.1
func (e *AuthExpiredError) Error() string
type Client ¶
type Client struct {
Clickup *clickup.Client
HTTPClient *http.Client
RateLimiter *RateLimiter
// contains filtered or unexported fields
}
Client wraps the go-clickup client with auth and rate limiting.
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
RateLimiter tracks ClickUp API rate limits and provides backoff.
func (*RateLimiter) ShouldRetry ¶
func (rl *RateLimiter) ShouldRetry(resp *http.Response) bool
ShouldRetry returns true if the response indicates rate limiting and the request should be retried.
func (*RateLimiter) Update ¶
func (rl *RateLimiter) Update(resp *http.Response)
Update reads rate limit headers from a response.
func (*RateLimiter) Wait ¶
func (rl *RateLimiter) Wait()
Wait blocks until it's safe to make another request.
Click to show internal directories.
Click to hide internal directories.