Documentation ¶
Index ¶
Constants ¶
View Source
const HEARTBEAT_DEFAULT = 10
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
func GetConnection() *amqp.Connection
GetConnectionReadOnly Obtém conexão de leitura com RabbitMQ
func GetQueueConfiguration ¶
func OpenConnection ¶
func OpenConnection() error
OpenConnectionReadOnly Abre conexão de leitura com RabbitMQ
func WriteMessage ¶
func WriteMessage(queuePublisher PublisherInterface) bool
WriteMessage Publica um messagem na fila
Types ¶
type Publisher ¶
Publisher Implementação da interface publisher
func NewPublisher ¶
func (*Publisher) GetExchangeName ¶
GetExchangeName Retorna o nome da fila
func (*Publisher) GetMessageToPublish ¶
GetMessageToPublish Retorna a mensagem convertida para publicação na fila
func (*Publisher) GetQueueName ¶
GetQueueName Retorna o nome da fila com sufixo identificador
func (*Publisher) GetRoutingKey ¶
GetRoutingKey Retorna a RoutingKey para direcionamento da mensagem
Click to show internal directories.
Click to hide internal directories.