Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewguenther/rpubsub
Simple command-line utilities for Redis pubsub
https://github.com/andrewguenther/rpubsub
command-line pubsub redis
Last synced: about 2 hours ago
JSON representation
Simple command-line utilities for Redis pubsub
- Host: GitHub
- URL: https://github.com/andrewguenther/rpubsub
- Owner: AndrewGuenther
- License: mit
- Created: 2015-08-07T07:25:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-10T05:02:42.000Z (about 9 years ago)
- Last Synced: 2024-06-19T16:32:34.644Z (5 months ago)
- Topics: command-line, pubsub, redis
- Language: Go
- Homepage:
- Size: 133 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rpubsub
Simple command-line utilities for Redis [pubsub][pubsub]## Usage
`rpubsub` creates two executables `rpub` and `rsub` their options are the same
and can be seen below.```bash
$ r[p|s]ub -h
Usage: r[p|s]ub [--host HOSTNAME:PORT] CHANNEL
-host=":6379": The hostname and port of your Redis instance
````rpub` will publish anything sent to its `STDIN` to the specified `CHANNEL`.
`rsub` will print anything messages it receives on the specified `CHANNEL` to
`STDOUT`.### Getting the source
`rpubsub` is a properly formatted [Go][golang] project which can be acquired
using the standard```bash
$ go get github.com/AndrewGuenther/rpubsub
```If you're unfamiliar with Go, execute the following (make sure you have Go
installed!)```bash
$ mkdir rpubsub
$ cd rpubsub
$ export GOPATH=$(pwd)
$ go get github.com/AndrewGuenther/rpubsub
$ cd src/github.com/AndrewGuenther/rpubsub
```### Building the binary
After you've got the source, just `make`!```bash
$ make
$ cd $GOPATH/bin
$ ls
rpub rsub
```[pubsub]: http://redis.io/commands#pubsub
[golang]: https://golang.org/