Documentation ¶
Index ¶
- func NewProjectHistoryService(fileName string) (*ProjectHistoryService, *ProjectHistory, error)
- func ReportAddNumber(report BarReport, name string, value int)
- type BarReport
- type BlogBarReport
- type CountMetrics
- type ProjectHistory
- func (h *ProjectHistory) CommitMetrics(reportDate string, total int) *ProjectReport
- func (h *ProjectHistory) DeveloperChatMetrics(reportDate string, total int) *ProjectReport
- func (h *ProjectHistory) DownloadMetrics(reportDate string, total int) *ProjectReport
- func (h *ProjectHistory) FindPreviousReport(reportDate string) *ProjectReport
- func (h *ProjectHistory) FindReport(reportDate string) *ProjectReport
- func (h *ProjectHistory) GetOrCreateReport(reportDate string) *ProjectReport
- func (h *ProjectHistory) IssueMetrics(reportDate string, total int) *ProjectReport
- func (h *ProjectHistory) NewCommitterMetrics(reportDate string, total int) *ProjectReport
- func (h *ProjectHistory) NewContributorMetrics(reportDate string, total int) *ProjectReport
- func (h *ProjectHistory) PullRequestMetrics(reportDate string, total int) *ProjectReport
- func (h *ProjectHistory) StarsMetrics(reportDate string, total int) *ProjectReport
- func (h *ProjectHistory) UserChatMetrics(reportDate string, total int) *ProjectReport
- type ProjectHistoryService
- type ProjectReport
- type TableBarReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProjectHistoryService ¶
func NewProjectHistoryService(fileName string) (*ProjectHistoryService, *ProjectHistory, error)
func ReportAddNumber ¶
Types ¶
type BlogBarReport ¶
type BlogBarReport struct { Name string BlogWriter io.Writer JSFileName string JSLinkURI string // contains filtered or unexported fields }
func NewBlogBarReport ¶
func (*BlogBarReport) AddNumber ¶
func (r *BlogBarReport) AddNumber(name string, value int)
func (*BlogBarReport) AddText ¶
func (r *BlogBarReport) AddText(name string, value string)
func (*BlogBarReport) Render ¶
func (r *BlogBarReport) Render() error
type CountMetrics ¶
type ProjectHistory ¶
type ProjectHistory struct { LastReportDate string `json:"lastReportDate,omitempty"` Reports []*ProjectReport `json:"reports,omitempty"` Contributors []string `json:"contributors,omitempty"` Committers []string `json:"committers,omitempty"` }
func (*ProjectHistory) CommitMetrics ¶
func (h *ProjectHistory) CommitMetrics(reportDate string, total int) *ProjectReport
func (*ProjectHistory) DeveloperChatMetrics ¶
func (h *ProjectHistory) DeveloperChatMetrics(reportDate string, total int) *ProjectReport
func (*ProjectHistory) DownloadMetrics ¶
func (h *ProjectHistory) DownloadMetrics(reportDate string, total int) *ProjectReport
func (*ProjectHistory) FindPreviousReport ¶
func (h *ProjectHistory) FindPreviousReport(reportDate string) *ProjectReport
func (*ProjectHistory) FindReport ¶
func (h *ProjectHistory) FindReport(reportDate string) *ProjectReport
func (*ProjectHistory) GetOrCreateReport ¶
func (h *ProjectHistory) GetOrCreateReport(reportDate string) *ProjectReport
func (*ProjectHistory) IssueMetrics ¶
func (h *ProjectHistory) IssueMetrics(reportDate string, total int) *ProjectReport
func (*ProjectHistory) NewCommitterMetrics ¶
func (h *ProjectHistory) NewCommitterMetrics(reportDate string, total int) *ProjectReport
func (*ProjectHistory) NewContributorMetrics ¶
func (h *ProjectHistory) NewContributorMetrics(reportDate string, total int) *ProjectReport
func (*ProjectHistory) PullRequestMetrics ¶
func (h *ProjectHistory) PullRequestMetrics(reportDate string, total int) *ProjectReport
func (*ProjectHistory) StarsMetrics ¶
func (h *ProjectHistory) StarsMetrics(reportDate string, total int) *ProjectReport
func (*ProjectHistory) UserChatMetrics ¶
func (h *ProjectHistory) UserChatMetrics(reportDate string, total int) *ProjectReport
type ProjectHistoryService ¶
type ProjectHistoryService struct { FileName string // contains filtered or unexported fields }
func (*ProjectHistoryService) History ¶
func (s *ProjectHistoryService) History() *ProjectHistory
func (*ProjectHistoryService) LoadHistory ¶
func (s *ProjectHistoryService) LoadHistory() (*ProjectHistory, error)
LoadHistory loads the project history from disk if it exists
func (*ProjectHistoryService) SaveHistory ¶
func (s *ProjectHistoryService) SaveHistory() error
SaveHistory saves the history to disk
type ProjectReport ¶
type ProjectReport struct { ReportDate string `json:"reportDate,omitempty"` StarsMetrics CountMetrics `json:"starsMetrics,omitempty"` DownloadMetrics CountMetrics `json:"downloadMetrics,omitempty"` IssueMetrics CountMetrics `json:"issueMetrics,omitempty"` PullRequestMetrics CountMetrics `json:"pullRequestMetrics,omitempty"` CommitMetrics CountMetrics `json:"commitMetrics,omitempty"` NewCommitterMetrics CountMetrics `json:"newCommitterMetrics,omitempty"` NewContributorMetrics CountMetrics `json:"newContributorMetrics,omitempty"` DeveloperChatMetrics CountMetrics `json:"developerChatMetrics,omitempty"` UserChatMetrics CountMetrics `json:"userChatMetrics,omitempty"` }
type TableBarReport ¶
func NewTableBarReport ¶
func NewTableBarReport(table table.Table, legends ...string) *TableBarReport
func (*TableBarReport) AddNumber ¶
func (t *TableBarReport) AddNumber(name string, value int)
func (*TableBarReport) AddText ¶
func (t *TableBarReport) AddText(name string, value string)
func (*TableBarReport) Render ¶
func (t *TableBarReport) Render() error
Click to show internal directories.
Click to hide internal directories.