Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitCmdLocalClient ¶
type GitCmdLocalClient struct {
Path string
}
GitCmdLocalClient works with local git through os commands
func (*GitCmdLocalClient) Clone ¶
func (g *GitCmdLocalClient) Clone(gitURL url.URL) error
Clone git repo
type GitLog ¶
type GitLog []GitLogEntry
GitLog is sequence of git log entries in reverse chronological order (i.e. first is latest)
func (GitLog) DaysSinceLastCommit ¶
DaysSinceLastCommit returns partial days since last commit
func (GitLog) NumContributors ¶
NumContributors returns number of contributors in log
type GitLogEntry ¶
GitLogEntry contains info about single git log entry
func NewGitLogEntryFromLine ¶
func NewGitLogEntryFromLine(input string) (GitLogEntry, error)
NewGitLogEntryFromLine git log entry from single row of predefined pretty print format
type GitStats ¶
type GitStats struct { LastCommit time.Time `json:"last_commit,omitempty"` DaysSinceLastCommit float64 `json:"last_commit_days_since"` NumContributors uint `json:"num_contributors"` }
GitStats contains information about single git repository computed using local git only
type GitStatsFetcher ¶
type GitStatsFetcher struct {
GitLogFetcher gitLogFetcher
}
GitStatsFetcher computes git stats after fetching using provided storage
func (*GitStatsFetcher) GetGitStats ¶
func (g *GitStatsFetcher) GetGitStats(gitURL url.URL) (*GitStats, error)
Click to show internal directories.
Click to hide internal directories.