Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker listen to queue and process the messages
func (*Worker) AddHandler ¶
func (w *Worker) AddHandler(handler workerHandler)
AddHandler to work to listen to msg's
func (*Worker) TryEnqueue ¶
func (w *Worker) TryEnqueue(msg *message.SSVMessage) bool
TryEnqueue tries to enqueue a job to the given job channel. Returns true if the operation was successful, and false if enqueuing would not have been possible without blocking. Job is not enqueued in the latter case.
Click to show internal directories.
Click to hide internal directories.