Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue represents an in-memory job queue.
type TaskManager ¶
type TaskManager struct {
Queue *Queue
}
func New ¶
func New() *TaskManager
func (*TaskManager) Publish ¶
func (tm *TaskManager) Publish(e event.ProcessedEvent) error
type Worker ¶
type Worker struct { TaskManager *TaskManager Handler worker.TaskHandler }
func NewWorker ¶
func NewWorker(tm *TaskManager, h worker.TaskHandler) *Worker
Click to show internal directories.
Click to hide internal directories.