Getting started:
Related tutorials:
| 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 |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "time" | |
| ) | |
| func main() { | |
| queue := NewQueue("amqp://guest:guest@localhost:5672/", "hello") |
| # 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 |
Getting started:
Related tutorials:
| git rebase --interactive HEAD~2 | |
| # we are going to squash c into b | |
| pick b76d157 b | |
| pick a931ac7 c | |
| # squash c into b | |
| pick b76d157 b | |
| s a931ac7 c |
| package main | |
| import ( | |
| "context" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "time" | |
| ) |
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
| type T struct { | |
| A int | |
| B string | |
| } | |
| t := T{23, "skidoo"} | |
| s := reflect.ValueOf(&t).Elem() | |
| typeOfT := s.Type() | |
| for i := 0; i < s.NumField(); i++ { |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:tx="http://www.springframework.org/schema/tx" | |
| xmlns:context="http://www.springframework.org/schema/context" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd | |
| http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd | |
| http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd"> | |
| <context:annotation-config /> | |
| <context:component-scan base-package="com.lorem.Todo" /> |