O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Goophr source code

In the previous two chapters, Chapter 6, Goophr Concierge and Chapter 7, Goophr Librarian, we discussed the code for Concierge and Librarian respectively. In order to run the complete Goophr application using docker-compose, we will need to merge the codebases of both Librarian and Concierge into a single codebase. The codebase will also include docker-compose.yaml and code for the file server.

In this chapter, we will not list the code for all the files in Librarian and Concierge but only the files with changes. Let's start by looking at the structure of the complete project:

$ tree -a
.
ε2;── goophr
    ├── concierge
    │   ├── api
    │   │   ├── feeder.go
    │   │   ├── feeder_test.go
    │   │   └── query.go
    │   ├── common
 │ │ └── helpers.go ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required