Documentation
¶
Index ¶
- type Client
- func (c *Client) CheckRateLimit(ctx context.Context) (*github.RateLimits, *github.Response, error)
- func (c *Client) GetClient() *github.Client
- func (c *Client) RetryWithBackoff(ctx context.Context, fn func() (*github.Response, error)) (*github.Response, error)
- func (c *Client) WaitForRateLimit(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the GitHub API client with rate limiting and retries
func NewClient ¶
func NewClient(token string, qps int, burst int, maxRetries int, baseDelayMs int, logger *zap.Logger) (*Client, error)
NewClient creates a new GitHub client with rate limiting
func (*Client) CheckRateLimit ¶
CheckRateLimit checks the current rate limit status
Click to show internal directories.
Click to hide internal directories.