Documentation ¶
Index ¶
- Variables
- func BinariesArchivePath(commitHash string, profilingOrDebugging bool) (string, error)
- type GitLogPerson
- type GitLogRecord
- type PRData
- type SourcesManager
- func (s *SourcesManager) CommitExists(hash string) bool
- func (s *SourcesManager) Compile(hash string, profilingOrDebugging bool, progress chan float64) error
- func (s *SourcesManager) CompileIfNeeded(hash string, profilingOrDebugging bool, progress chan float64) error
- func (s *SourcesManager) EnsureSourcesUpdated() error
- func (s *SourcesManager) FindMostRecentCommitChangingSeeder(commitHash string) (string, error)
- func (s *SourcesManager) GetGitLog(offset, limit int, alwaysIncludeInitial bool) ([]GitLogRecord, error)
- func (s *SourcesManager) MakeCommitArchive(hash string) error
- func (s *SourcesManager) ReadCommitArchive(hash string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGitLogOutOfBounds = errors.New("Requested out-of-bounds git log")
Functions ¶
Types ¶
type GitLogPerson ¶
type GitLogRecord ¶
type GitLogRecord struct { CommitHash string `json:"commit"` ParentCommitHash string `json:"parent"` Subject string `json:"subject"` Author GitLogPerson `json:"author"` AuthoredString string `json:"authored_date,omitempty"` Authored time.Time `json:"authored"` Committer GitLogPerson `json:"committer"` CommittedString string `json:"committed_date,omitempty"` Committed time.Time `json:"committed"` }
type SourcesManager ¶
type SourcesManager struct {
// contains filtered or unexported fields
}
func NewSourcesManager ¶
func NewSourcesManager() *SourcesManager
func (*SourcesManager) CommitExists ¶
func (s *SourcesManager) CommitExists(hash string) bool
func (*SourcesManager) Compile ¶
func (s *SourcesManager) Compile( hash string, profilingOrDebugging bool, progress chan float64, ) error
func (*SourcesManager) CompileIfNeeded ¶
func (s *SourcesManager) CompileIfNeeded( hash string, profilingOrDebugging bool, progress chan float64, ) error
func (*SourcesManager) EnsureSourcesUpdated ¶
func (s *SourcesManager) EnsureSourcesUpdated() error
func (*SourcesManager) FindMostRecentCommitChangingSeeder ¶
func (s *SourcesManager) FindMostRecentCommitChangingSeeder( commitHash string, ) (string, error)
FindMostRecentCommitChangingSeeder finds the most recent commit of or before the given commit hash that changes the seeder logic. Used to not have to re- seed the shards with every commit if the seeder logic hasn't changed.
func (*SourcesManager) GetGitLog ¶
func (s *SourcesManager) GetGitLog( offset, limit int, alwaysIncludeInitial bool, ) ([]GitLogRecord, error)
func (*SourcesManager) MakeCommitArchive ¶
func (s *SourcesManager) MakeCommitArchive(hash string) error
func (*SourcesManager) ReadCommitArchive ¶
func (s *SourcesManager) ReadCommitArchive(hash string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.