rabbitmq

package module
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 7 Imported by: 0

README

Build Status Code Coverage Go Report Card GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acknowledger

type Acknowledger interface {
	AcknowledgeSingleMessage(uint64) error
	AcknowledgeMultipleMessages(uint64) error
}

type BatchAcknowledger

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

func (*BatchAcknowledger) Listen

func (this *BatchAcknowledger) Listen()

type Broker

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

func NewBroker

func NewBroker(target url.URL, connector Connector) *Broker

func (*Broker) Connect

func (this *Broker) Connect() error

func (*Broker) Disconnect

func (this *Broker) Disconnect()

func (*Broker) Notify

func (this *Broker) Notify(callback func(uint64))

func (*Broker) OpenReader

func (this *Broker) OpenReader(queue string, bindings ...string) messaging.Reader

func (*Broker) OpenTransactionalWriter

func (this *Broker) OpenTransactionalWriter() messaging.CommitWriter

func (*Broker) OpenTransientReader

func (this *Broker) OpenTransientReader(bindings []string) messaging.Reader

func (*Broker) OpenWriter

func (this *Broker) OpenWriter() messaging.Writer

func (*Broker) State

func (this *Broker) State() uint64

type Channel

type Channel interface {
	Consumer
	Publisher

	Close() error
}

type ChannelReader

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

func (*ChannelReader) Acknowledgements

func (this *ChannelReader) Acknowledgements() chan<- interface{}

func (*ChannelReader) Close

func (this *ChannelReader) Close()

func (*ChannelReader) Deliveries

func (this *ChannelReader) Deliveries() <-chan messaging.Delivery

func (*ChannelReader) Listen

func (this *ChannelReader) Listen()

type ChannelWriter

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

func (*ChannelWriter) Close

func (this *ChannelWriter) Close()

func (*ChannelWriter) Commit

func (this *ChannelWriter) Commit() error

func (*ChannelWriter) Write

func (this *ChannelWriter) Write(message messaging.Dispatch) error

type Connection

type Connection interface {
	Channel() (Channel, error)
	Close() error
}

type Connector

type Connector interface {
	Connect(url.URL) (Connection, error)
}

type Consumer

type Consumer interface {
	Acknowledger

	ConfigureChannelBuffer(int) error
	DeclareExchange(string, string) error
	DeclareQueue(string) error
	DeclareTransientQueue() (string, error)
	BindExchangeToQueue(string, string) error

	Consume(string, string) (<-chan amqp.Delivery, error)
	ExclusiveConsume(string, string) (<-chan amqp.Delivery, error)
	ConsumeWithoutAcknowledgement(string, string) (<-chan amqp.Delivery, error)
	ExclusiveConsumeWithoutAcknowledgement(string, string) (<-chan amqp.Delivery, error)

	CancelConsumer(string) error
}

type Controller

type Controller interface {
	// contains filtered or unexported methods
}

type DeliveryReceipt

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

type Publisher

type Publisher interface {
	ConfigureChannelAsTransactional() error

	PublishMessage(string, string, amqp.Publishing) error

	CommitTransaction() error
	RollbackTransaction() error
}

type Subscription

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

func (*Subscription) Close

func (this *Subscription) Close()

func (*Subscription) Listen

func (this *Subscription) Listen()

type TransactionWriter

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

func (*TransactionWriter) Close

func (this *TransactionWriter) Close()

func (*TransactionWriter) Commit

func (this *TransactionWriter) Commit() error

func (*TransactionWriter) Write

func (this *TransactionWriter) Write(message messaging.Dispatch) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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