https://github.com/whywaita/rabbitmq-mmm
https://github.com/whywaita/rabbitmq-mmm
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/whywaita/rabbitmq-mmm
- Owner: whywaita
- Created: 2020-02-17T09:22:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T09:29:21.000Z (about 6 years ago)
- Last Synced: 2024-05-02T01:50:59.075Z (almost 2 years ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rabbitmq-mmm (msg miru miru)
RabbitMQ Consumer CLI Library
## Usage
- write message handler
ex:
```Go
func handleMessage(msg []byte, queue lib.Queue) error {
fmt.Printf("%s from %s", string(msg), queue.Name)
return nil
}
```
- write your `main.go`
- execute!
```shell script
$ RMQ_USERNAME="user" RMQ_PASSWORD="password" RMQ_HOST="localhost" go run main.go
```