Documentation
¶
Overview ¶
Package github provides a client for interacting with the GitHub API, including fetching authenticated user information and contribution data.
Package github provides a function to initialize the GitHub client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient interface {
Do(query string, variables map[string]interface{}, response interface{}) error
}
APIClient interface defines the methods we need from the client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds the API client
func (*Client) FetchContributions ¶
func (c *Client) FetchContributions(username string, year int) (*types.ContributionsResponse, error)
FetchContributions retrieves the contribution data for a given username and year from GitHub.
func (*Client) GetAuthenticatedUser ¶
GetAuthenticatedUser fetches the authenticated user's login name from GitHub.
type ClientInitializer ¶
ClientInitializer is a function type for initializing GitHub clients
Click to show internal directories.
Click to hide internal directories.