Documentation ¶
Index ¶
- func NewEngine(old, new engine.Engine) engine.Engine
- func Setup(conf *config.Config, l *logrus.Logger) error
- type Engine
- func (e *Engine) BatchConsume(namespace string, queues []string, count, ttrSecond, timeoutSecond uint32, ...) (jobs []engine.Job, err error)
- func (e *Engine) Consume(namespace string, queues []string, ttrSecond, timeoutSecond uint32, ...) (job engine.Job, err error)
- func (e *Engine) Delete(namespace, queue, jobID string) error
- func (e *Engine) DeleteDeadLetter(namespace, queue string, limit int64) (count int64, err error)
- func (e *Engine) Destroy(namespace, queue string) (count int64, err error)
- func (e *Engine) DumpInfo(output io.Writer) error
- func (e *Engine) Peek(namespace, queue, optionalJobID string) (job engine.Job, err error)
- func (e *Engine) PeekDeadLetter(namespace, queue string) (size int64, jobID string, err error)
- func (e *Engine) Publish(namespace, queue string, body []byte, ttlSecond, delaySecond uint32, ...) (jobID string, err error)
- func (e *Engine) RespawnDeadLetter(namespace, queue string, limit, ttlSecond int64) (count int64, err error)
- func (e *Engine) Shutdown()
- func (e *Engine) Size(namespace, queue string) (size int64, err error)
- func (e *Engine) SizeOfDeadLetter(namespace, queue string) (size int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) BatchConsume ¶
func (e *Engine) BatchConsume(namespace string, queues []string, count, ttrSecond, timeoutSecond uint32, freezeTries bool) (jobs []engine.Job, err error)
BatchConsume consume some jobs of a queue
func (*Engine) DeleteDeadLetter ¶
func (*Engine) PeekDeadLetter ¶
func (*Engine) RespawnDeadLetter ¶
Click to show internal directories.
Click to hide internal directories.