rabbitmqtaskmanager

package
v0.0.0-...-834ce46 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	ConnectionConfig dconfig.RabbitMQTaskManagerConnection
	QueueName        string
}

func NewTaskConsumer

func NewTaskConsumer(cnf dconfig.RabbitMQTaskManagerConnection, queueName string) Consumer

func (Consumer) Consume

func (c Consumer) Consume(done <-chan bool, wg *sync.WaitGroup) (<-chan event.ProcessedEvent, error)

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func (*Queue) Enqueue

func (q *Queue) Enqueue(pe event.ProcessedEvent) error

type TaskPublisher

type TaskPublisher struct {
	// contains filtered or unexported fields
}

func NewTaskPublisher

func NewTaskPublisher(c dconfig.RabbitMQTaskManagerConnection, queueName string) *TaskPublisher

func (*TaskPublisher) Publish

func (tm *TaskPublisher) Publish(pe event.ProcessedEvent) error

Jump to

Keyboard shortcuts

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