rabbitmq

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 12 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, q taskqueue.Queue, task *taskqueue.Task) error

AddTask adds a task to the queue.

func (*TaskQueueImpl) RegisterTenant added in v0.9.0

func (t *TaskQueueImpl) RegisterTenant(ctx context.Context, tenantId string) error

func (*TaskQueueImpl) Subscribe

func (t *TaskQueueImpl) Subscribe(ctx context.Context, q taskqueue.Queue) (<-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