rabbitmq

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskQueueImpl

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

TaskQueueImpl implements TaskQueue interface using AMQP.

func New

New creates a new TaskQueueImpl.

func (*TaskQueueImpl) AddTask

func (t *TaskQueueImpl) AddTask(ctx context.Context, queue taskqueue.QueueType, task *taskqueue.Task) error

AddTask adds a task to the queue.

func (*TaskQueueImpl) Subscribe

func (t *TaskQueueImpl) Subscribe(ctx context.Context, queueType taskqueue.QueueType) (<-chan *taskqueue.Task, error)

Subscribe subscribes to the task queue.

type TaskQueueImplOpt

type TaskQueueImplOpt func(*TaskQueueImplOpts)

func WithLogger

func WithLogger(l *zerolog.Logger) TaskQueueImplOpt

func WithURL

func WithURL(url string) TaskQueueImplOpt

type TaskQueueImplOpts

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

Jump to

Keyboard shortcuts

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