├── Chapter01 ├── addInt.go ├── addInt_test.go ├── docker │ ├── Dockerfile │ └── main.go ├── nil_test.go ├── variadic.go └── variadic_test.go ├── Chapter02 ├── correctSerialGoroutines.go ├── goroutineHalt.go ├── goroutineRecover.go ├── parallel.go ├── serial.go └── serialGoroutines.go ├── Chapter03 ├── buffchan.go ├── cashier.go ├── closed.go ├── elems.go ├── multiplexing.go ├── naiveMultiplexing.go ├── simchan.go ├── unichans.go ├── unichans2.go ├── wichan.go └── wochan.go ├── Chapter04 ├── helloServer.go ├── restClient.go └── restServer │ ├── books-handler │ ├── actions.go │ ├── common.go │ └── handler.go │ └── main.go ├── Chapter05 ├── goophr │ ├── concierge │ │ ├── Dockerfile │ │ ├── Makefile │ │ ├── api │ │ │ ├── feeder.go │ │ │ └── query.go │ │ ├── common │ │ │ ├── helpers.go │ │ │ ├── state.go │ │ │ └── test_helpers.go │ │ └── main.go │ ├── docker-compose.yaml │ └── librarian │ │ ├── Dockerfile │ │ ├── Makefile │ │ ├── api │ │ ├── index.go │ │ └── query.go │ │ ├── common │ │ ├── helpers.go │ │ ├── state.go │ │ └── test_helpers.go │ │ └── main.go └── openapi │ ├── books.yaml │ ├── concierge.yaml │ └── librarian.yaml ├── Chapter06 ├── goophr │ └── concierge │ │ ├── Dockerfile │ │ ├── api │ │ ├── feeder.go │ │ ├── feeder_test.go │ │ └── query.go │ │ ├── common │ │ ├── helpers.go │ │ ├── state.go │ │ └── test_helpers.go │ │ └── main.go └── openapi │ └── concierge.yaml ├── Chapter07 ├── feeder.go └── goophr │ └── librarian │ ├── Dockerfile │ ├── api │ ├── index.go │ └── query.go │ ├── common │ ├── helpers.go │ ├── state.go │ └── test_helpers.go │ └── main.go ├── Chapter08 ├── goophr │ ├── concierge │ │ ├── Dockerfile │ │ ├── api │ │ │ ├── feeder.go │ │ │ ├── feeder_test.go │ │ │ └── query.go │ │ ├── common │ │ │ └── helpers.go │ │ └── main.go │ ├── docker-compose.yaml │ ├── librarian │ │ ├── Dockerfile │ │ ├── api │ │ │ ├── index.go │ │ │ └── query.go │ │ ├── common │ │ │ └── helpers.go │ │ └── main.go │ └── simple-server │ │ ├── Dockerfile │ │ └── main.go └── secure │ ├── secure.go │ └── secure_test.go └── README.md /Chapter01/addInt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter01/addInt.go -------------------------------------------------------------------------------- /Chapter01/addInt_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter01/addInt_test.go -------------------------------------------------------------------------------- /Chapter01/docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter01/docker/Dockerfile -------------------------------------------------------------------------------- /Chapter01/docker/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter01/docker/main.go -------------------------------------------------------------------------------- /Chapter01/nil_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter01/nil_test.go -------------------------------------------------------------------------------- /Chapter01/variadic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter01/variadic.go -------------------------------------------------------------------------------- /Chapter01/variadic_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter01/variadic_test.go -------------------------------------------------------------------------------- /Chapter02/correctSerialGoroutines.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter02/correctSerialGoroutines.go -------------------------------------------------------------------------------- /Chapter02/goroutineHalt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter02/goroutineHalt.go -------------------------------------------------------------------------------- /Chapter02/goroutineRecover.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter02/goroutineRecover.go -------------------------------------------------------------------------------- /Chapter02/parallel.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter02/parallel.go -------------------------------------------------------------------------------- /Chapter02/serial.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter02/serial.go -------------------------------------------------------------------------------- /Chapter02/serialGoroutines.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter02/serialGoroutines.go -------------------------------------------------------------------------------- /Chapter03/buffchan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/buffchan.go -------------------------------------------------------------------------------- /Chapter03/cashier.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/cashier.go -------------------------------------------------------------------------------- /Chapter03/closed.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/closed.go -------------------------------------------------------------------------------- /Chapter03/elems.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/elems.go -------------------------------------------------------------------------------- /Chapter03/multiplexing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/multiplexing.go -------------------------------------------------------------------------------- /Chapter03/naiveMultiplexing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/naiveMultiplexing.go -------------------------------------------------------------------------------- /Chapter03/simchan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/simchan.go -------------------------------------------------------------------------------- /Chapter03/unichans.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/unichans.go -------------------------------------------------------------------------------- /Chapter03/unichans2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/unichans2.go -------------------------------------------------------------------------------- /Chapter03/wichan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/wichan.go -------------------------------------------------------------------------------- /Chapter03/wochan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter03/wochan.go -------------------------------------------------------------------------------- /Chapter04/helloServer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter04/helloServer.go -------------------------------------------------------------------------------- /Chapter04/restClient.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter04/restClient.go -------------------------------------------------------------------------------- /Chapter04/restServer/books-handler/actions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter04/restServer/books-handler/actions.go -------------------------------------------------------------------------------- /Chapter04/restServer/books-handler/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter04/restServer/books-handler/common.go -------------------------------------------------------------------------------- /Chapter04/restServer/books-handler/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter04/restServer/books-handler/handler.go -------------------------------------------------------------------------------- /Chapter04/restServer/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter04/restServer/main.go -------------------------------------------------------------------------------- /Chapter05/goophr/concierge/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/concierge/Dockerfile -------------------------------------------------------------------------------- /Chapter05/goophr/concierge/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/concierge/Makefile -------------------------------------------------------------------------------- /Chapter05/goophr/concierge/api/feeder.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | // Logic related to /feeder 4 | -------------------------------------------------------------------------------- /Chapter05/goophr/concierge/api/query.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | // Logic related to /query 4 | -------------------------------------------------------------------------------- /Chapter05/goophr/concierge/common/helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/concierge/common/helpers.go -------------------------------------------------------------------------------- /Chapter05/goophr/concierge/common/state.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/concierge/common/state.go -------------------------------------------------------------------------------- /Chapter05/goophr/concierge/common/test_helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/concierge/common/test_helpers.go -------------------------------------------------------------------------------- /Chapter05/goophr/concierge/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/concierge/main.go -------------------------------------------------------------------------------- /Chapter05/goophr/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/docker-compose.yaml -------------------------------------------------------------------------------- /Chapter05/goophr/librarian/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/librarian/Dockerfile -------------------------------------------------------------------------------- /Chapter05/goophr/librarian/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/librarian/Makefile -------------------------------------------------------------------------------- /Chapter05/goophr/librarian/api/index.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | // Logic related to /index 4 | -------------------------------------------------------------------------------- /Chapter05/goophr/librarian/api/query.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | // Logic related to /query 4 | -------------------------------------------------------------------------------- /Chapter05/goophr/librarian/common/helpers.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | // Generic logic used by librarian 4 | -------------------------------------------------------------------------------- /Chapter05/goophr/librarian/common/state.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/librarian/common/state.go -------------------------------------------------------------------------------- /Chapter05/goophr/librarian/common/test_helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/librarian/common/test_helpers.go -------------------------------------------------------------------------------- /Chapter05/goophr/librarian/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/goophr/librarian/main.go -------------------------------------------------------------------------------- /Chapter05/openapi/books.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/openapi/books.yaml -------------------------------------------------------------------------------- /Chapter05/openapi/concierge.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/openapi/concierge.yaml -------------------------------------------------------------------------------- /Chapter05/openapi/librarian.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter05/openapi/librarian.yaml -------------------------------------------------------------------------------- /Chapter06/goophr/concierge/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter06/goophr/concierge/Dockerfile -------------------------------------------------------------------------------- /Chapter06/goophr/concierge/api/feeder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter06/goophr/concierge/api/feeder.go -------------------------------------------------------------------------------- /Chapter06/goophr/concierge/api/feeder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter06/goophr/concierge/api/feeder_test.go -------------------------------------------------------------------------------- /Chapter06/goophr/concierge/api/query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter06/goophr/concierge/api/query.go -------------------------------------------------------------------------------- /Chapter06/goophr/concierge/common/helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter06/goophr/concierge/common/helpers.go -------------------------------------------------------------------------------- /Chapter06/goophr/concierge/common/state.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter06/goophr/concierge/common/state.go -------------------------------------------------------------------------------- /Chapter06/goophr/concierge/common/test_helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter06/goophr/concierge/common/test_helpers.go -------------------------------------------------------------------------------- /Chapter06/goophr/concierge/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter06/goophr/concierge/main.go -------------------------------------------------------------------------------- /Chapter06/openapi/concierge.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter06/openapi/concierge.yaml -------------------------------------------------------------------------------- /Chapter07/feeder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter07/feeder.go -------------------------------------------------------------------------------- /Chapter07/goophr/librarian/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter07/goophr/librarian/Dockerfile -------------------------------------------------------------------------------- /Chapter07/goophr/librarian/api/index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter07/goophr/librarian/api/index.go -------------------------------------------------------------------------------- /Chapter07/goophr/librarian/api/query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter07/goophr/librarian/api/query.go -------------------------------------------------------------------------------- /Chapter07/goophr/librarian/common/helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter07/goophr/librarian/common/helpers.go -------------------------------------------------------------------------------- /Chapter07/goophr/librarian/common/state.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter07/goophr/librarian/common/state.go -------------------------------------------------------------------------------- /Chapter07/goophr/librarian/common/test_helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter07/goophr/librarian/common/test_helpers.go -------------------------------------------------------------------------------- /Chapter07/goophr/librarian/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter07/goophr/librarian/main.go -------------------------------------------------------------------------------- /Chapter08/goophr/concierge/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/concierge/Dockerfile -------------------------------------------------------------------------------- /Chapter08/goophr/concierge/api/feeder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/concierge/api/feeder.go -------------------------------------------------------------------------------- /Chapter08/goophr/concierge/api/feeder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/concierge/api/feeder_test.go -------------------------------------------------------------------------------- /Chapter08/goophr/concierge/api/query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/concierge/api/query.go -------------------------------------------------------------------------------- /Chapter08/goophr/concierge/common/helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/concierge/common/helpers.go -------------------------------------------------------------------------------- /Chapter08/goophr/concierge/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/concierge/main.go -------------------------------------------------------------------------------- /Chapter08/goophr/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/docker-compose.yaml -------------------------------------------------------------------------------- /Chapter08/goophr/librarian/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/librarian/Dockerfile -------------------------------------------------------------------------------- /Chapter08/goophr/librarian/api/index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/librarian/api/index.go -------------------------------------------------------------------------------- /Chapter08/goophr/librarian/api/query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/librarian/api/query.go -------------------------------------------------------------------------------- /Chapter08/goophr/librarian/common/helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/librarian/common/helpers.go -------------------------------------------------------------------------------- /Chapter08/goophr/librarian/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/librarian/main.go -------------------------------------------------------------------------------- /Chapter08/goophr/simple-server/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/simple-server/Dockerfile -------------------------------------------------------------------------------- /Chapter08/goophr/simple-server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/goophr/simple-server/main.go -------------------------------------------------------------------------------- /Chapter08/secure/secure.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/secure/secure.go -------------------------------------------------------------------------------- /Chapter08/secure/secure_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/Chapter08/secure/secure_test.go -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Distributed-Computing-with-Go/HEAD/README.md --------------------------------------------------------------------------------