Machine Programming I - Distributed Log Querier
This is, after all, a set of applications written in Go. So first install GVM - loan_surgeon requires go1.4.1 or beyond to build correctly.
gvm install go1.4
gvm use go1.4
# if you use autoenv you may want to add the line above to your .env file
If you know what you are doing, feel free to clone dlog
in the
correct go path location. If you are unsure, run:
go get gitlab-beta.engr.illinois.edu/mcconne7/dlog
Finally, run the following script to install all necessary
packages (including golint
):
./go_get.sh
Deploying to production: go get https://gitlab-beta.engr.illinois.edu/mcconne7/dlog cd $GOPATH/src/gitlab-beta.engr.illinois.edu/mcconne7/dlog go install ./...
In order to build and run dlog you will need
- go
- ruby
To build dlog run the build script:
./build.rb
This:
- formats the code
- lints the code
- tests the code
- builds the code
- installs the code
client: run
- You are probably going to want to end your commands with
2> /dev/null
to avoid log messages(to suppress the output). For example start the client with:grep_client 127.0.0.1:3000 2>/dev/null
- 127.0.0.1:3000 is the example URL
$ dgrep_client 127.0.0.1:3000
2015/09/12 20:28:07 client.go:46: Connection to: [127.0.0.1:3000]
returns the status of the server
status
{ "status": "running", "running": true }
echos the command back to you
echo hello world!
hello world!
sys grep go README.md
* go
go1.4.1 or beyond to build correctly.
gvm install go1.4
gvm use go1.4
correct go path location. If you are unsure, run:
go get gitlab-beta.engr.illinois.edu/mcconne7/dlog
packages (including `golint`):
./go_get.sh
server: run
dgrep_server 3000
dgrep server:2015/09/12 20:26:09 server.go:70: Server [127.0.0.1:3000]: is ending? false begins on: 127.0.0.1:3000