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 `yaml:"lastReportDate,omitempty"` Reports []*ProjectReport `yaml:"reports,omitempty"` Contributors []string `yaml:"contributors,omitempty"` Committers []string `yaml:"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 `yaml:"reportDate,omitempty"` StarsMetrics CountMetrics `yaml:"starsMetrics,omitempty"` DownloadMetrics CountMetrics `yaml:"downloadMetrics,omitempty"` IssueMetrics CountMetrics `yaml:"issueMetrics,omitempty"` PullRequestMetrics CountMetrics `yaml:"pullRequestMetrics,omitempty"` CommitMetrics CountMetrics `yaml:"commitMetrics,omitempty"` NewCommitterMetrics CountMetrics `yaml:"newCommitterMetrics,omitempty"` NewContributorMetrics CountMetrics `yaml:"newContributorMetrics,omitempty"` DeveloperChatMetrics CountMetrics `yaml:"developerChatMetrics,omitempty"` UserChatMetrics CountMetrics `yaml:"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.