rabbitmq

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 13 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

func New(fs ...TaskQueueImplOpt) (func() error, *TaskQueueImpl)

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) IsReady added in v0.13.0

func (t *TaskQueueImpl) IsReady() bool

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(q taskqueue.Queue) (func() error, <-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