An open API service indexing awesome lists of open source software.

https://github.com/domarps/dlog

Distributed Log Querier
https://github.com/domarps/dlog

Last synced: about 2 months ago
JSON representation

Distributed Log Querier

Awesome Lists containing this project

README

        

# dlog
Machine Programming I - Distributed Log Querier

## Setting Up Your Go Environment

This is, after all, a set of applications written in Go.
So first [install GVM](https://github.com/moovweb/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
```

## Production

### Installation
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 ./...

## Development

### Dependencies
In order to build and run dlog you will need
* go
* ruby

### How to Build
To build dlog run the build script:
```
./build.rb
```
This:
1. formats the code
2. lints the code
3. tests the code
4. builds the code
5. installs the code

## Usage: Client
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]
```

### Status
returns the status of the server

```
status
{ "status": "running", "running": true }
```

### Echo
echos the command back to you

```
echo hello world!
hello world!
```

### System

```
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
```

## Usage: Server
server: run

### Start
```
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
```