NewConn creates a new connection manager.
NewConsumer returns a new Consumer connected to the given rabbitmq server it also starts consuming on the given connection with automatic reconnection handling Do not reuse the returned consumer for anything other than to close it.
NewPublisher returns a new publisher with an open channel to the cluster.
NewConsumer returns a new Consumer connected to the given rabbitmq server it also starts consuming on the given connection with automatic reconnection handling Do not reuse the returned consumer for anything other than to close it.
WithConnectionOptionsConfig sets the Config used in the connection.
WithConnectionOptionsLogger sets logging to true on the consumer options and sets the.
WithConnectionOptionsLogging sets logging to true on the consumer options and sets the.
WithConnectionOptionsReconnectInterval sets the reconnection interval.
WithConsumerOptionsBinding adds a new binding to the queue which allows you to set the binding options on a per-binding basis.
WithConsumerOptionsConcurrency returns a function that sets the concurrency, which means that many goroutines will be spawned to run the provided handler on messages.
WithConsumerOptionsConsumerAutoAck returns a function that sets the auto acknowledge property on the server of this consumer if unset the default will be used (false).
WithConsumerOptionsConsumerExclusive sets the consumer to exclusive, which means the server will ensure that this is the sole consumer from this queue.
WithConsumerOptionsConsumerName returns a function that sets the name on the server of this consumer if unset a random name will be given.
WithConsumerOptionsConsumerNoWait sets the consumer to nowait, which means it does not wait for the server to confirm the request and immediately begin deliveries.
WithConsumerOptionsExchangeArgs adds optional args to the exchange.
WithConsumerOptionsExchangeAutoDelete ensures the exchange is an auto-delete exchange.
WithConsumerOptionsExchangeDeclare stops this library from declaring the exchanges existance.
WithConsumerOptionsExchangeDurable ensures the exchange is a durable exchange.
WithConsumerOptionsExchangeInternal ensures the exchange is an internal exchange.
WithConsumerOptionsExchangeKind ensures the queue is a durable queue.
WithConsumerOptionsExchangeName sets the exchange name.
WithConsumerOptionsExchangeNoWait ensures the exchange is a no-wait exchange.
WithConsumerOptionsExchangePassive ensures the exchange is a passive exchange.
WithConsumerOptionsLogger sets logging to a custom interface.
WithConsumerOptionsLogging uses a default logger that writes to std out.
WithConsumerOptionsQOSGlobal sets the qos on the channel to global, which means these QOS settings apply to ALL existing and future consumers on all channels on the same connection.
WithConsumerOptionsQOSPrefetch returns a function that sets the prefetch count, which means that many messages will be fetched from the server in advance to help with throughput.
WithConsumerOptionsQueueArgs adds optional args to the queue.
WithConsumerOptionsQueueAutoDelete ensures the queue is an auto-delete queue.
WithConsumerOptionsQueueDurable ensures the queue is a durable queue.
WithConsumerOptionsQueueExclusive ensures the queue is an exclusive queue.
WithConsumerOptionsQueueNoDeclare will turn off the declaration of the queue's existance upon startup.
WithConsumerOptionsQueueNoWait ensures the queue is a no-wait queue.
WithConsumerOptionsQueuePassive ensures the queue is a passive queue.
WithConsumerOptionsQueueQuorum sets the queue a quorum type, which means multiple nodes in the cluster will have the messages distributed amongst them for higher reliability.
WithConsumerOptionsRoutingKey binds the queue to a routing key with the default binding options.
WithPublisherOptionsConfirm enables confirm mode on the connection this is required if publisher confirmations should be used.
WithPublisherOptionsExchangeArgs adds optional args to the exchange.
WithPublisherOptionsExchangeAutoDelete ensures the exchange is an auto-delete exchange.
WithPublisherOptionsExchangeDeclare stops this library from declaring the exchanges existance.
WithPublisherOptionsExchangeDurable ensures the exchange is a durable exchange.
WithPublisherOptionsExchangeInternal ensures the exchange is an internal exchange.
WithPublisherOptionsExchangeKind ensures the queue is a durable queue.
WithPublisherOptionsExchangeName sets the exchange name.
WithPublisherOptionsExchangeNoWait ensures the exchange is a no-wait exchange.
WithPublisherOptionsExchangePassive ensures the exchange is a passive exchange.
WithPublisherOptionsLogger sets logging to a custom interface.
WithPublisherOptionsLogging sets logging to true on the publisher options and sets the.
WithPublishOptionsAppID returns a function that sets the application id.
WithPublishOptionsContentEncoding returns a function that sets the content encoding, i.e.
WithPublishOptionsContentType returns a function that sets the content type, i.e.
WithPublishOptionsCorrelationID returns a function that sets the content correlation identifier.
WithPublishOptionsExchange returns a function that sets the exchange to publish to.
WithPublishOptionsExpiration returns a function that sets the expiry/TTL of a message.
WithPublishOptionsHeaders returns a function that sets message header values, i.e.
WithPublishOptionsImmediate makes the publishing immediate, which means when a consumer is not available to immediately handle the new message, a message will be sent back on the returns channel for you to handle.
WithPublishOptionsMandatory makes the publishing mandatory, which means when a queue is not bound to the routing key a message will be sent back on the returns channel for you to handle.
WithPublishOptionsMessageID returns a function that sets the message identifier.
WithPublishOptionsPersistentDelivery sets the message to persist.
WithPublishOptionsPriority returns a function that sets the content priority from 0 to 9.
WithPublishOptionsReplyTo returns a function that sets the reply to field.
WithPublishOptionsTimestamp returns a function that sets the timestamp for the message.
WithPublishOptionsType returns a function that sets the message type name.
WithPublishOptionsUserID returns a function that sets the user id i.e.
WithSuperConsumerOptionsBinding adds a new binding to the queue which allows you to set the binding options on a per-binding basis.
WithSuperConsumerOptionsConcurrency returns a function that sets the concurrency, which means that many goroutines will be spawned to run the provided handler on messages.
WithSuperConsumerOptionsConsumerAutoAck returns a function that sets the auto acknowledge property on the server of this consumer if unset the default will be used (false).
WithSuperConsumerOptionsConsumerExclusive sets the consumer to exclusive, which means the server will ensure that this is the sole consumer from this queue.
WithSuperConsumerOptionsConsumerName returns a function that sets the name on the server of this consumer if unset a random name will be given.
WithSuperConsumerOptionsConsumerNoWait sets the consumer to nowait, which means it does not wait for the server to confirm the request and immediately begin deliveries.
WithSuperConsumerOptionsExchangeArgs adds optional args to the exchange.
WithSuperConsumerOptionsExchangeAutoDelete ensures the exchange is an auto-delete exchange.
WithSuperConsumerOptionsExchangeDeclare stops this library from declaring the exchanges existance.
WithSuperConsumerOptionsExchangeDurable ensures the exchange is a durable exchange.
WithSuperConsumerOptionsExchangeInternal ensures the exchange is an internal exchange.
WithSuperConsumerOptionsExchangeKind ensures the queue is a durable queue.
WithSuperConsumerOptionsExchangeName sets the exchange name.
WithSuperConsumerOptionsExchangeNoWait ensures the exchange is a no-wait exchange.
WithSuperConsumerOptionsExchangePassive ensures the exchange is a passive exchange.
WithSuperConsumerOptionsLogger sets logging to a custom interface.
WithSuperConsumerOptionsLogging uses a default logger that writes to std out.
WithSuperConsumerOptionsQOSGlobal sets the qos on the channel to global, which means these QOS settings apply to ALL existing and future consumers on all channels on the same connection.
WithSuperConsumerOptionsQOSPrefetch returns a function that sets the prefetch count, which means that many messages will be fetched from the server in advance to help with throughput.
WithSuperConsumerOptionsQueueArgs adds optional args to the queue.
WithSuperConsumerOptionsQueueAutoDelete ensures the queue is an auto-delete queue.
WithSuperConsumerOptionsQueueDurable ensures the queue is a durable queue.
WithSuperConsumerOptionsQueueExclusive ensures the queue is an exclusive queue.
WithSuperConsumerOptionsQueueNoDeclare will turn off the declaration of the queue's existance upon startup.
WithSuperConsumerOptionsQueueNoWait ensures the queue is a no-wait queue.
WithSuperConsumerOptionsQueuePassive ensures the queue is a passive queue.
WithSuperConsumerOptionsQueueQuorum sets the queue a quorum type, which means multiple nodes in the cluster will have the messages distributed amongst them for higher reliability.
WithSuperConsumerOptionsRoutingKey binds the queue to a routing key with the default binding options.