Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskHandler ¶
type TaskHandler interface {
HandleTask(ctx context.Context, newEvent event.ProcessedEvent) error
}
type Worker ¶
type Worker struct { TaskHandler TaskHandler EventsChannel <-chan event.ProcessedEvent }
func NewWorker ¶
func NewWorker(events <-chan event.ProcessedEvent, th TaskHandler) *Worker
Click to show internal directories.
Click to hide internal directories.