Documentation
¶
Overview ¶
Package metadata provides utilities for fetching server metadata (GitHub stars) from external APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher retrieves metadata from external APIs.
func NewFetcher ¶
func NewFetcher(client HTTPClient, githubToken string) *Fetcher
NewFetcher creates a new Fetcher with the given HTTP client and optional GitHub token.
func (*Fetcher) FetchStars ¶
FetchStars returns the stargazers_count for a GitHub repository. The repoURL should be a GitHub repository URL like "https://github.com/owner/repo". Returns (0, nil) if the URL is empty or not a GitHub URL.
Click to show internal directories.
Click to hide internal directories.