Documentation ¶
Index ¶
- type Window
- func (w *Window) EarliestStart() time.Time
- func (w *Window) Start(repo string) time.Time
- func (w *Window) StartTimesByRepo() map[string]time.Time
- func (w *Window) TestCommit(repo string, c *repograph.Commit) bool
- func (w *Window) TestCommitHash(repo, revision string) (bool, error)
- func (w *Window) TestTime(repo string, t time.Time) bool
- func (w *Window) Update() error
- func (w *Window) UpdateWithTime(now time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window is a struct used for managing time windows based on a duration and a minimum number of commits in zero or more repositories.
func (*Window) EarliestStart ¶
EarliestStart returns the earliest start time of any repo's Window.
func (*Window) StartTimesByRepo ¶
StartTimesByRepo returns a map of repo URL to start time of that repo's window.
func (*Window) TestCommit ¶
TestCommit determines whether the given commit is in the Window.
func (*Window) TestCommitHash ¶
TestCommitHash determines whether the given commit is in the Window.
Click to show internal directories.
Click to hide internal directories.