Versions in this module Expand all Collapse all v1 v1.0.0 Nov 3, 2024 Changes in this version + type Cache struct + func NewCache() *Cache + func (c *Cache) Get(key string) (GitHubStats, bool) + func (c *Cache) Set(key string, stats GitHubStats, duration time.Duration) + type CacheEntry struct + Expiration time.Time + Stats GitHubStats + type Config struct + CacheDuration time.Duration + CertFile string + IP string + IncludeOptions IncludeOptions + KeyFile string + Path string + Port string + RateLimit int + Scheme string + Token string + type GStats struct + func (g *GStats) Connect(config Config) error + func (g *GStats) GetGitHubStats(username string, opts IncludeOptions) (GitHubStats, error) + type GitHubStats struct + Followers int + Following int + Organizations []string + Repositories []RepoStats + TotalStars int + Username string + type IncludeOptions struct + IncludeFirstNRepos int + IncludeFollowers bool + IncludeFollowing bool + IncludeOrgs bool + IncludeRepos bool + IncludeStars bool + type Organizations struct + Organizations []string + type RateLimiter struct + func NewRateLimiter(limit int, interval time.Duration) *RateLimiter + func (rl *RateLimiter) Allow() bool + type RepoStats struct + Contributors map[string]int + Forks int + Name string + OpenIssues int + Stars int