mq

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL