Versions in this module Expand all Collapse all v0 v0.2.0 Jun 15, 2020 v0.1.0 Jun 10, 2020 Changes in this version + func Build(dss DownloadStatsService) (string, error) + type DownloadStatsService interface + FetchReleaseHistory func() (*ReleaseHistory, error) + FormatDownloadStats func(*ReleaseHistory) (string, error) + type GitHubDownloadStatsOptions struct + ApiEndpoint string + JsonOut bool + Release string + Token string + type GitHubDownloadStatsService struct + func NewGitHubDownloadStatsService(owner string, repo string, options *GitHubDownloadStatsOptions) *GitHubDownloadStatsService + func (ghds *GitHubDownloadStatsService) FetchReleaseHistory() (*ReleaseHistory, error) + func (ghds *GitHubDownloadStatsService) FormatDownloadStats(history *ReleaseHistory) (string, error) + type Release struct + Assets []ReleaseAsset + Date time.Time + Name string + TotalDownloads int + type ReleaseAsset struct + Downloads int + Name string + type ReleaseHistory struct + ReleaseCount int + Releases []Release + Repository string