Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastPublisher ¶
type BroadcastPublisher interface { Broadcaster Publisher }
BroadcastPublisher use when you need to publish & broadcast.
type Broadcaster ¶
Broadcaster is an interface for broadcasting a message over a fanout channel. in other words, over rabbit's fanout exchange.
type Broker ¶
type Broker struct {
AmqpURL string
}
Broker wraps a rabbitmq functionality. It implements the publisher and broadcaster interfaces.
type MockBroker ¶
type MockBroker struct { }
MockBroker implements the publisher/consumer interface but does nothing
Click to show internal directories.
Click to hide internal directories.