Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(dss DownloadStatsService) (string, error)
Types ¶
type DownloadStatsService ¶
type DownloadStatsService interface { FetchReleaseHistory() (*ReleaseHistory, error) FormatDownloadStats(*ReleaseHistory) (string, error) }
type GitHubDownloadStatsService ¶
type GitHubDownloadStatsService struct {
// contains filtered or unexported fields
}
func NewGitHubDownloadStatsService ¶
func NewGitHubDownloadStatsService(owner string, repo string, options *GitHubDownloadStatsOptions) *GitHubDownloadStatsService
func (*GitHubDownloadStatsService) FetchReleaseHistory ¶
func (ghds *GitHubDownloadStatsService) FetchReleaseHistory() (*ReleaseHistory, error)
func (*GitHubDownloadStatsService) FormatDownloadStats ¶
func (ghds *GitHubDownloadStatsService) FormatDownloadStats(history *ReleaseHistory) (string, error)
type Release ¶
type Release struct { Name string `json:"name"` Date time.Time `json:"date"` Assets []ReleaseAsset `json:"assets"` TotalDownloads int `json:"total_downloads"` }
type ReleaseAsset ¶
type ReleaseHistory ¶
Click to show internal directories.
Click to hide internal directories.