Documentation
¶
Overview ¶
Package github fetches GitHub profile data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthRequired ¶
func AuthRequired() bool
AuthRequired returns false because GitHub profiles are public.
Types ¶
type APIError ¶ added in v0.5.0
type APIError struct {
StatusCode int
RateLimitRemain int
RateLimitReset time.Time
Message string
IsRateLimit bool
}
APIError contains details about a GitHub API error.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles GitHub requests.
func (*Client) UsernameFromEmail ¶ added in v0.7.8
UsernameFromEmail looks up a GitHub username from an email address. It first searches users with the email, then falls back to searching commits. Returns empty string if no username is found.
type Option ¶
type Option func(*config)
Option configures a Client.
func WithHTTPCache ¶
WithHTTPCache sets the HTTP cache.
Click to show internal directories.
Click to hide internal directories.