Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Checker checkerController = &CheckerControllerImpl{}
)
View Source
var ( Connector connectorController = &ConnectorControllerImpl{ pendingCheck: make(chan *types.PendingChecksInfo, 5), pendingSubmit: make(chan *types.PendingSubmitInfo, 5), } )
Functions ¶
This section is empty.
Types ¶
type CheckerControllerImpl ¶
type CheckerControllerImpl struct{}
func (*CheckerControllerImpl) ListCheckers ¶
func (controller *CheckerControllerImpl) ListCheckers() error
ListCheckers returns all the checkers for our scheme.
func (*CheckerControllerImpl) PostChecker ¶
func (controller *CheckerControllerImpl) PostChecker(repo, prefix string, update bool) (*types.CheckerInfo, error)
PostChecker creates or changes a checker. It sets up a checker on the given repo, for the given prefix.
type ConnectorControllerImpl ¶
type ConnectorControllerImpl struct {
// contains filtered or unexported fields
}
func (*ConnectorControllerImpl) PendingLoop ¶
func (controller *ConnectorControllerImpl) PendingLoop()
pendingLoop periodically contacts gerrit to find new checks and submissions to execute. It should be executed in a goroutine.
func (*ConnectorControllerImpl) ServeCheck ¶
func (controller *ConnectorControllerImpl) ServeCheck()
ServeCheck runs the serve loop, dispatching for checks that need it.
func (*ConnectorControllerImpl) ServeSubmit ¶
func (controller *ConnectorControllerImpl) ServeSubmit()
ServeSubmit runs the serve loop, dispatching for submissions that need it.
Click to show internal directories.
Click to hide internal directories.