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

https://github.com/whywaita/rabbitmq-mmm


https://github.com/whywaita/rabbitmq-mmm

Last synced: about 1 year ago
JSON representation

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