Documentation ¶ Index ¶ func InitRabbit(conf config.Rabbit) type TaskQueue func NewTaskQueue() (*TaskQueue, error) func (tq *TaskQueue) Consume() (<-chan []byte, error) func (tq *TaskQueue) Publish(body []byte) error func (tq *TaskQueue) Stop() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func InitRabbit ¶ func InitRabbit(conf config.Rabbit) Types ¶ type TaskQueue ¶ type TaskQueue struct { // contains filtered or unexported fields } func NewTaskQueue ¶ func NewTaskQueue() (*TaskQueue, error) func (*TaskQueue) Consume ¶ func (tq *TaskQueue) Consume() (<-chan []byte, error) func (*TaskQueue) Publish ¶ func (tq *TaskQueue) Publish(body []byte) error func (*TaskQueue) Stop ¶ func (tq *TaskQueue) Stop() Source Files ¶ View all Source files mq.go task_queue.go Click to show internal directories. Click to hide internal directories.