Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("CL not found")
ErrNotFound should be returned by Store implementations when CL number doesn't exist.
Functions ¶
This section is empty.
Types ¶
type CL ¶
type CL struct { Project string `json:"project"` ChangeID string `json:"change_id"` Number int64 `json:"_number"` Subject string `json:"subject"` Branch string `json:"branch"` CurrentRevision string `json:"current_revision"` Revisions map[string]struct { Commit struct { Subject string `json:"subject"` Message string `json:"message"` } `json:"commit"` } `json:"revisions"` }
CL represents a merged CL that we send to the subscriber of the poller.
func (*CL) Link ¶
Link returns the golang.org CL link for this CL, in the form of https://golang.org/cl/<Number>/
type DefaultStore ¶
type DefaultStore struct {
// contains filtered or unexported fields
}
DefaultStore is a default implementation of the Store interface.
func NewStore ¶
func NewStore(rc *redis.Client) (*DefaultStore, error)
NewStore returns a new DefaultStore.
type Gerrit ¶
type Gerrit struct {
// contains filtered or unexported fields
}
Gerrit tracks merged CLs.
type NotifyFunc ¶
NotifyFunc represents the function signature the poller notifies on a new item. If error is not nil, the item will be retried at some point in the future.
Click to show internal directories.
Click to hide internal directories.