Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kgrz/rbkit-go
Possible fork of code-mancers/rbkit-client written in Go
https://github.com/kgrz/rbkit-go
Last synced: about 2 months ago
JSON representation
Possible fork of code-mancers/rbkit-client written in Go
- Host: GitHub
- URL: https://github.com/kgrz/rbkit-go
- Owner: kgrz
- Created: 2015-06-17T13:33:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-11T10:31:58.000Z (over 9 years ago)
- Last Synced: 2023-03-12T07:18:55.424Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 168 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo hosts the Go daemon that parses data received from the Rbkit
server gem. The incoming data is parsed and stored/processed for use by
the front-end built in Electron.Installing pre-requisites
=========================After you have a working Go installation on your machine, install the
ZMQ Go library, and msgpack library by running:```
go get github.com/vaughan0/go-zmq
go get github.com/ugorji/go/codec
```Running the GC test
===================In the Rbkit repo, run the `experiments/using_rbkit.rb` daemon. This
runs a sample script and has the rbkit server started.Clone this repo, run `go run examples/trigger_gc.go` to repeatedly
trigger the GC in the running ruby script.To visualize if the GC is getting triggered or not, add a `puts
GC.stat(:count)` in the `using_rbkit.rb` file.Running the `using_rbkit.rb` clone
==================================To run the clone of `using_rbkit.rb` which will log all the event
messges received from the server to the file `/tmp/rbkit_go.log`, run
the following command:`go run examples/event_logger.go`
Running the command test
========================To run command test, run the following command:
`go run examples/commander/commander.go`
This will open a prompt on the terminal to that of the
`rbkit_command_test.rb` on the Rbkit repo. This one won't log any output
from the data socket anywhere.