tool: elektrad add source structure to the readme
A server that provides an [HTTP API](http://docs.elektrad.apiary.io) to access
Elektra remotely, built using [Go](https://golang.org).
+## Source structure
+
+`*_handler.go` files contain the HTTP handler functions.
+`*_handler_test.go` files contain the corresponding handler tests.
+`temp-elektra.pc.in` that CMAKE leverages to create an intermediate pkg-config file that tells the GO compiler where it can find the Elektra header files and symbols during the build step.
+`middleware.go` contains the HTTP middleware - such as user session (and caching of Elektra handles) management.
+`router.go` is responsible for setting up the API routes.
+`main.go` is the entry point of the server.
+
## Compiling
You can compile `elektrad` manually or via CMake.
@@ -27,7 +36,6 @@ The output of `go build` is a binary, you can simply run it with:
Compile Elektra as described in the [COMPILE document](/doc/COMPILE.md), make sure to include the `web` and `kdb` tool using the `-DTOOLS` flag, e.g. `-DTOOLS="kdb;web"`.
-Since this package is leveraging pkg-config files we need an intermediate `elektra.pc` file, which is generated from `temp-elektra.pc.in` in the building phase of Elektra to locate the header files and symbols while Elektra is not installed this machine.
The binary is located at `build-dir/src/tools/web/elektrad` and symlinked to `build-dir/bin/elektrad`.
