Documentation ¶
Index ¶
- Constants
- func CheckRateLimit(token string, args ...any) error
- func GetStars(links []contract.Link, puller contract.Puller) map[string]int
- func NewHandler(puller contract.Puller, readmePath string, url string) contract.Handler
- func NewLink(title, url, raw string) contract.Link
- func NewPullResult(statusCode int, content []byte) contract.PullResult
- func NewPuller(token string) contract.Puller
- func Parse(content string) []contract.Link
- func Replace(scanner *bufio.Scanner, stars map[string]int) (string, error)
- type GithubResponse
- type RateLimitResponse
Constants ¶
View Source
const RateLimitUrl = "https://api.github.com/rate_limit"
Variables ¶
This section is empty.
Functions ¶
func CheckRateLimit ¶
func NewHandler ¶
func NewPullResult ¶
func NewPullResult(statusCode int, content []byte) contract.PullResult
Types ¶
type GithubResponse ¶
type GithubResponse struct {
StargazersCount int `json:"stargazers_count"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.