Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_NAME = "wrq" DEFAULT_QUEUE_SIZE = 100 DEFAULT_WORKERS = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Dispatcher
func NewWithSettings ¶
func NewWithSettings(name string, queueSize int, maxWorkers int) *Dispatcher
func (*Dispatcher) AddJob ¶
func (d *Dispatcher) AddJob(job Job)
func (*Dispatcher) Stop ¶
func (d *Dispatcher) Stop()
Click to show internal directories.
Click to hide internal directories.