Getting started:
Related tutorials:
Getting started:
Related tutorials:
| # wget -i this_file | |
| http://www.oreilly.com/programming/free/files/files/microservices-for-java-developers.pdf | |
| http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.pdf | |
| http://www.oreilly.com/programming/free/files/object-oriented-vs-functional-programming.pdf | |
| http://www.oreilly.com/programming/free/files/java-the-legend.pdf | |
| http://www.oreilly.com/programming/free/files/functional-programming-python.pdf | |
| http://www.oreilly.com/programming/free/files/reactive-microservices-architecture-orm.pdf | |
| http://www.oreilly.com/programming/free/files/migrating-cloud-native-application-architectures.pdf | |
| http://www.oreilly.com/programming/free/files/software-architecture-patterns.pdf |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "time" | |
| ) | |
| func main() { | |
| queue := NewQueue("amqp://guest:guest@localhost:5672/", "hello") |
| const ( | |
| // When reconnecting to the server after connection failure | |
| reconnectDelay = 5 * time.Second | |
| ) | |
| // Client holds necessery information for rabbitMQ | |
| type Client struct { | |
| pushQueue string | |
| logger zerolog.Logger | |
| connection *amqp.Connection |