Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
func NewRabbitConsumer ¶
func NewRabbitConsumer(logger *zap.Logger, cfg configuration.RabbitConfig, routingKey string) (Consumer, error)
type ConsumerImpl ¶
type ConsumerImpl struct { Conn *rabbitmq.Conn Consumer *rabbitmq.Consumer }
func (*ConsumerImpl) Close ¶
func (c *ConsumerImpl) Close() error
func (*ConsumerImpl) Run ¶
func (c *ConsumerImpl) Run(handler rabbitmq.Handler) error
type ConsumerMock ¶
func (*ConsumerMock) Close ¶
func (m *ConsumerMock) Close() error
func (*ConsumerMock) Run ¶
func (m *ConsumerMock) Run(handler rabbitmq.Handler) error
type Publisher ¶
type Publisher interface { Publish(msg []byte, routingKey string, withExpiration bool) error Close() error }
func NewRabbitPublisher ¶
func NewRabbitPublisher(logger *zap.Logger, cfg configuration.RabbitConfig) (Publisher, error)
type PublisherImpl ¶
type PublisherImpl struct { Conn *rabbitmq.Conn Publisher *rabbitmq.Publisher ExchangeName string }
func (*PublisherImpl) Close ¶
func (p *PublisherImpl) Close() error
type PublisherMock ¶
func (*PublisherMock) Close ¶
func (m *PublisherMock) Close() error
Click to show internal directories.
Click to hide internal directories.