Documentation
¶
Index ¶
- type Broker
- func (b *Broker) Consume(pipe *jobs.Pipeline, execPool chan jobs.Handler, errHandler jobs.ErrorHandler) error
- func (b *Broker) Init() (bool, error)
- func (b *Broker) Listen(lsn func(event int, ctx interface{}))
- func (b *Broker) Push(pipe *jobs.Pipeline, j *jobs.Job) (string, error)
- func (b *Broker) Register(pipe *jobs.Pipeline) error
- func (b *Broker) Serve() error
- func (b *Broker) Stat(pipe *jobs.Pipeline) (stat *jobs.Stat, err error)
- func (b *Broker) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker run queue using local goroutines.
func (*Broker) Consume ¶
func (b *Broker) Consume(pipe *jobs.Pipeline, execPool chan jobs.Handler, errHandler jobs.ErrorHandler) error
Consume configures pipeline to be consumed. With execPool to nil to disable consuming. Method can be called before the service is started!
Click to show internal directories.
Click to hide internal directories.