Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventEnqueuer ¶
func EventEnqueuer(ctx context.Context, q queue.Queue) lookout.EventHandler
EventEnqueuer returns an event handler that pushes events to the queue.
func RunEventDequeuer ¶
func RunEventDequeuer( ctx context.Context, q queue.Queue, eventHandler lookout.EventHandler, concurrent int, ) error
RunEventDequeuer starts an infinite loop that takes jobs from the queue as they become available. Concurrent determines the maximum number of goroutines used to call the given event handler.
Types ¶
type QueueJob ¶
type QueueJob struct { EventType lookout.EventType // Exported so go-queue marshals it, but should be accessed through Event() ReviewEvent *lookout.ReviewEvent // Exported so go-queue marshals it, but should be accessed through Event() PushEvent *lookout.PushEvent }
QueueJob is the data sent to the queue
func NewQueueJob ¶
NewQueueJob creates a new QueueJob from the given Event
Click to show internal directories.
Click to hide internal directories.