Documentation
¶
Index ¶
Constants ¶
View Source
const ( // GitHubTimeout is the default timeout for GitHub API calls. GitHubTimeout = 10 * time.Second // GitHubAccept is the standard Accept header for GitHub API v3. GitHubAccept = "application/vnd.github+json" // QuotaCheckTimeout is a short timeout for lightweight API quota checks. QuotaCheckTimeout = 5 * time.Second )
Variables ¶
View Source
var GitHubClient = &http.Client{Timeout: GitHubTimeout}
GitHubClient is a shared HTTP client for GitHub API calls.
View Source
var QuotaCheckClient = &http.Client{Timeout: QuotaCheckTimeout}
QuotaCheckClient is a shared HTTP client for lightweight rate-limit checks.
Functions ¶
func GetOAuthClient ¶
GetOAuthClient returns an HTTP client that injects a Bearer token into every request.
func PrintHTTPResponse ¶
func SendEmail ¶ added in v0.42.3
SendEmail sends an email via the Resend API. The apiKey is a Resend API key. from and to are email addresses; subject, html, and text are the message content. replyTo is optional — if non-empty, sets the Reply-To header on the email.
func SetGitHubHeaders ¶ added in v0.30.5
SetGitHubHeaders sets the standard Authorization and Accept headers for GitHub API requests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.