You've already forked microservices
mirror of
https://github.com/ebosas/microservices.git
synced 2025-08-24 20:08:55 +02:00
Comments
This commit is contained in:
@@ -52,7 +52,7 @@ func receiveMessages(d amqp.Delivery) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// publishInput reads user input, marshals to json, and publishes to
|
// publishInput reads user input, marshals to json, and publishes to
|
||||||
// a Rabbit exchange with the front-end and database routing key.
|
// a Rabbit exchange with the front-end and database routing keys.
|
||||||
func publishInput(conn *rabbit.Conn) {
|
func publishInput(conn *rabbit.Conn) {
|
||||||
reader := bufio.NewReader(os.Stdin)
|
reader := bufio.NewReader(os.Stdin)
|
||||||
|
|
||||||
|
@@ -124,7 +124,7 @@ func handleWriteWebsocket(ws *websocket.Conn) func(d amqp.Delivery) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// handlePublishRabbit publishes a Websocket message to a Rabbit
|
// handlePublishRabbit publishes a Websocket message to a Rabbit
|
||||||
// exchange with the the back-end and database routing key.
|
// exchange with the the back-end and database routing keys.
|
||||||
// A Websocket reader only passes a message. So, a Rabbit channel is
|
// A Websocket reader only passes a message. So, a Rabbit channel is
|
||||||
// additionally passed using a closure.
|
// additionally passed using a closure.
|
||||||
func handlePublishRabbit(ch *amqp.Channel) func(msg []byte) error {
|
func handlePublishRabbit(ch *amqp.Channel) func(msg []byte) error {
|
||||||
|
Reference in New Issue
Block a user