Documentation
¶
Overview ¶
Package cid contains CommitID and utilities for working with them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitDetail ¶
type CommitDetail struct { CommitID Author string `json:"author"` Message string `json:"message"` URL string `json:"url"` Hash string `json:"hash"` Timestamp int64 `json:"ts"` }
CommitDetail describes a CommitID.
type CommitID ¶
type CommitID struct { Offset int `json:"offset"` // The index number of the commit from beginning of time, or the index of the patch number in Reitveld. Source string `json:"source"` // The branch name, e.g. "master", or the Reitveld issue id. }
CommitID represents the time of a particular commit, where a commit could either be a real commit into the repo, or an event like running a trybot.
type CommitIDLookup ¶
type CommitIDLookup struct {
// contains filtered or unexported fields
}
CommitIDLookup allows getting CommitDetails from CommitIDs.
func (*CommitIDLookup) Lookup ¶
func (c *CommitIDLookup) Lookup(ctx context.Context, cids []*CommitID) ([]*CommitDetail, error)
Lookup returns a CommitDetail for each CommitID.
Click to show internal directories.
Click to hide internal directories.