Documentation ¶
Index ¶
- Constants
- func GenerateQueueName(ex string, topic string) string
- type Broker
- type ChannelConsumer
- type ChannelCreator
- type ConnectionManager
- type Connector
- type Exchange
- type ExchangeFactory
- type ExchangeHandler
- type ExchangeOrganizer
- type Factory
- type Manager
- type QueueHandler
- type RBConnection
- type RBDialer
- type RabbitChannel
- type Starter
- type Stopper
Constants ¶
View Source
const MAX_ATTEMPTS = 3
Variables ¶
This section is empty.
Functions ¶
func GenerateQueueName ¶ added in v1.0.0
Types ¶
type ChannelConsumer ¶ added in v1.0.0
type ChannelCreator ¶ added in v1.0.0
type ChannelCreator interface {
Channel() (RabbitChannel, error)
}
type ConnectionManager ¶ added in v1.0.0
type ConnectionManager struct {
// contains filtered or unexported fields
}
func (*ConnectionManager) Channel ¶ added in v1.0.0
func (m *ConnectionManager) Channel() (RabbitChannel, error)
func (*ConnectionManager) Connect ¶ added in v1.0.0
func (m *ConnectionManager) Connect(connectionUrl string) (<-chan *amqp.Error, error)
func (*ConnectionManager) Disconnect ¶ added in v1.0.0
func (m *ConnectionManager) Disconnect()
type Exchange ¶ added in v1.0.0
type Exchange struct {
// contains filtered or unexported fields
}
func (*Exchange) StartConsuming ¶ added in v1.0.0
type ExchangeFactory ¶ added in v1.0.0
type ExchangeFactory struct {
// contains filtered or unexported fields
}
func (*ExchangeFactory) Build ¶ added in v1.0.0
func (f *ExchangeFactory) Build() (ExchangeOrganizer, error)
func (*ExchangeFactory) WithChanCreator ¶ added in v1.0.0
func (f *ExchangeFactory) WithChanCreator(creator ChannelCreator) Factory
func (*ExchangeFactory) WithExchange ¶ added in v1.0.0
func (f *ExchangeFactory) WithExchange(ex *types.Exchange) Factory
func (*ExchangeFactory) WithInvoker ¶ added in v1.0.0
func (f *ExchangeFactory) WithInvoker(client types.Invoker) Factory
type ExchangeHandler ¶ added in v1.0.0
type ExchangeOrganizer ¶ added in v1.0.0
func NewExchange ¶ added in v1.0.0
func NewExchange(channel ChannelConsumer, client types.Invoker, definition *types.Exchange) ExchangeOrganizer
type Factory ¶ added in v1.0.0
type Factory interface { WithInvoker(client types.Invoker) Factory WithChanCreator(creator ChannelCreator) Factory WithExchange(ex *types.Exchange) Factory Build() (ExchangeOrganizer, error) }
func NewFactory ¶ added in v1.0.0
func NewFactory() Factory
type Manager ¶ added in v1.0.0
type Manager interface { Connector ChannelCreator }
func NewConnectionManager ¶ added in v1.0.0
type QueueHandler ¶ added in v1.0.0
type RBConnection ¶ added in v1.0.0
type RBDialer ¶ added in v1.0.0
type RBDialer interface { Dial(url string) (RBConnection, error) DialTLS(url string, conf *tls.Config) (RBConnection, error) }
type RabbitChannel ¶ added in v1.0.0
type RabbitChannel interface { ExchangeHandler QueueHandler ChannelConsumer }
Click to show internal directories.
Click to hide internal directories.