Documentation ¶
Overview ¶
* 用于关联github.com/RichardKnop/machinery/v2/brokers/redis包中的函数和方法
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerBroadcast ¶
type BrokerBroadcast struct { *BrokerGR // contains filtered or unexported fields }
* 扩展支持任务广播的broker
func NewWithOptions ¶
func (*BrokerBroadcast) StartConsuming ¶
func (b *BrokerBroadcast) StartConsuming(consumerTag string, concurrency int, taskProcessor iface.TaskProcessor) (bool, error)
StartConsuming enters a loop and waits for incoming messages
func (*BrokerBroadcast) StopConsuming ¶
func (b *BrokerBroadcast) StopConsuming()
StopConsuming quits the loop
type Option ¶
type Option func(broadcast *BrokerBroadcast)
func WithBroadcastHeaderKey ¶
Click to show internal directories.
Click to hide internal directories.