Documentation ¶
Index ¶
- Variables
- type CommitStats
- type FunctionStats
- type GitProider
- type SimpleStatsComputer
- func (s SimpleStatsComputer) CommitDifference(filename string, fromLineStart, fromLineEnd, toLineStart, toLineEnd int) (int, error)
- func (s SimpleStatsComputer) CommmentLastUpdatedAt(filename string, lineStart int, lineEnd int) (time.Time, error)
- func (s SimpleStatsComputer) FunctionLastUpdatedAt(filename string, lineStart int, lineEnd int) (time.Time, error)
- func (s SimpleStatsComputer) LastCommitForRange(filename string, lineStart int, lineEnd int) (string, error)
- type TimeStats
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CommitStats ¶
CommitStats is commits related statistics of function and associated doc comment.
func (CommitStats) String ¶
func (s CommitStats) String() string
func (CommitStats) StringVerbose ¶
func (s CommitStats) StringVerbose() string
type FunctionStats ¶
type FunctionStats struct { Name string *TimeStats *CommitStats }
FunctionStats is container for function and associated doc comment statistics.
func (FunctionStats) String ¶
func (s FunctionStats) String() string
func (FunctionStats) StringVerbose ¶
func (s FunctionStats) StringVerbose() string
type GitProider ¶
type SimpleStatsComputer ¶
type SimpleStatsComputer struct {
GitProider GitProider
}
func (SimpleStatsComputer) CommitDifference ¶
func (s SimpleStatsComputer) CommitDifference(filename string, fromLineStart, fromLineEnd, toLineStart, toLineEnd int) (int, error)
func (SimpleStatsComputer) CommmentLastUpdatedAt ¶
func (SimpleStatsComputer) FunctionLastUpdatedAt ¶
func (SimpleStatsComputer) LastCommitForRange ¶
func (s SimpleStatsComputer) LastCommitForRange(filename string, lineStart int, lineEnd int) (string, error)
LastCommitForRange selects commit for last updated line. Not using true ordering of commits, since it is computationally prohibitive.
type TimeStats ¶
TimeStats is time related statistics of function and associated doc comment.
func (TimeStats) DocLastUpdatedBehind ¶ added in v1.1.0
func (TimeStats) StringVerbose ¶
Click to show internal directories.
Click to hide internal directories.