Documentation ¶
Index ¶
- func NewMockConnection() messaging.Connection
- func NewMockConsumer() messaging.Consumer
- func NewMockProducer() messaging.Producer
- type Connection
- func (c *Connection) Close()
- func (c *Connection) Consumer(autoAck bool, exchange, queue string) (messaging.Consumer, error)
- func (c *Connection) IsConnected() bool
- func (c *Connection) NotifyConnectionClose() <-chan error
- func (c *Connection) NotifyReestablish() <-chan bool
- func (c *Connection) Producer(exchange string) (messaging.Producer, error)
- func (c *Connection) WaitUntilConnectionCloses()
- func (c *Connection) WaitUntilConnectionReestablished()
- type Consumer
- func (c *Consumer) BindActions(actions ...string) error
- func (c *Consumer) Close()
- func (c *Consumer) Consume()
- func (c *Consumer) Subscribe(action string, handler messaging.EventHandler, ...) error
- func (c *Consumer) UnbindActions(actions ...string) error
- func (c *Consumer) Unsubscribe(action string) error
- type Producer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockConnection ¶
func NewMockConnection() messaging.Connection
func NewMockConsumer ¶
func NewMockProducer ¶
Types ¶
type Connection ¶
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) IsConnected ¶
func (c *Connection) IsConnected() bool
func (*Connection) NotifyConnectionClose ¶
func (c *Connection) NotifyConnectionClose() <-chan error
func (*Connection) NotifyReestablish ¶
func (c *Connection) NotifyReestablish() <-chan bool
func (*Connection) Producer ¶
func (c *Connection) Producer(exchange string) (messaging.Producer, error)
func (*Connection) WaitUntilConnectionCloses ¶
func (c *Connection) WaitUntilConnectionCloses()
func (*Connection) WaitUntilConnectionReestablished ¶
func (c *Connection) WaitUntilConnectionReestablished()
type Consumer ¶
func (*Consumer) BindActions ¶
func (*Consumer) Subscribe ¶
func (c *Consumer) Subscribe(action string, handler messaging.EventHandler, options *messaging.SubscribeOptions) error
func (*Consumer) UnbindActions ¶
func (*Consumer) Unsubscribe ¶
Click to show internal directories.
Click to hide internal directories.