broker

package
v1.0.0-...-a0f063d Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmqpBroker

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

func NewAmqpBroker

func NewAmqpBroker(connectionName string) (*AmqpBroker, error)

func (*AmqpBroker) AddChainJobs

func (b *AmqpBroker) AddChainJobs(jobs ...queue.IBrokerJob) error

func (*AmqpBroker) AddChainJobsWithQueue

func (b *AmqpBroker) AddChainJobsWithQueue(queueName string, jobs ...queue.IBrokerJob) error

func (*AmqpBroker) AddJob

func (b *AmqpBroker) AddJob(jobs ...queue.IBrokerJob) error

func (*AmqpBroker) AddJobWithQueue

func (b *AmqpBroker) AddJobWithQueue(queueName string, jobs ...queue.IBrokerJob) error

func (*AmqpBroker) Connection

func (b *AmqpBroker) Connection(name string) queue.IBroker

func (*AmqpBroker) RunServe

func (b *AmqpBroker) RunServe(queueName string, concurrentCount int) error

type RedisBroker

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

func NewRedisBroker

func NewRedisBroker(connectionName string) (*RedisBroker, error)

func (*RedisBroker) AddChainJobs

func (b *RedisBroker) AddChainJobs(jobs ...queue.IBrokerJob) error

func (*RedisBroker) AddChainJobsWithQueue

func (b *RedisBroker) AddChainJobsWithQueue(queueName string, jobs ...queue.IBrokerJob) error

func (*RedisBroker) AddJob

func (b *RedisBroker) AddJob(jobs ...queue.IBrokerJob) error

func (*RedisBroker) AddJobWithQueue

func (b *RedisBroker) AddJobWithQueue(queueName string, jobs ...queue.IBrokerJob) error

func (*RedisBroker) Connection

func (b *RedisBroker) Connection(name string) queue.IBroker

func (*RedisBroker) RunServe

func (b *RedisBroker) RunServe(queueName string, concurrentCount int) error

type SyncBroker

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

func NewSyncBroker

func NewSyncBroker(connection string) *SyncBroker

func (*SyncBroker) AddChainJobs

func (s *SyncBroker) AddChainJobs(jobs ...queue.IBrokerJob) error

func (*SyncBroker) AddChainJobsWithQueue

func (s *SyncBroker) AddChainJobsWithQueue(queueName string, jobs ...queue.IBrokerJob) error

func (*SyncBroker) AddJob

func (s *SyncBroker) AddJob(jobs ...queue.IBrokerJob) error

func (*SyncBroker) AddJobWithQueue

func (s *SyncBroker) AddJobWithQueue(queueName string, jobs ...queue.IBrokerJob) error

func (*SyncBroker) Connection

func (s *SyncBroker) Connection(name string) queue.IBroker

func (*SyncBroker) RunServe

func (s *SyncBroker) RunServe(queueName string, concurrentCount int) error

Jump to

Keyboard shortcuts

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