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

https://github.com/pog7x/go-rmq-worker-tmpl

Golang RMQ asynchronous worker template
https://github.com/pog7x/go-rmq-worker-tmpl

amqp boilerplate docker docker-compose go golang rmq template watermill worker

Last synced: 2 months ago
JSON representation

Golang RMQ asynchronous worker template

Awesome Lists containing this project

README

          

# go-rmq-worker-tmpl

[![Build Status](https://github.com/pog7x/go-rmq-worker-tmpl/actions/workflows/go.yml/badge.svg)](https://github.com/pog7x/go-rmq-worker-tmpl/actions/workflows/go.yml)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/pog7x/go-rmq-worker-tmpl/blob/master/LICENSE)

## Golang RMQ asynchronous worker template

### Technologies used:
- Logger: [zap](https://github.com/uber-go/zap)
- RMQ: [streadway/amqp](https://github.com/streadway/amqp), [ThreeDotsLabs/watermill](https://github.com/ThreeDotsLabs/watermill)
- Metrics: [prometheus/client_golang](https://github.com/prometheus/client_golang), [TheZeroSlave/zapsentry](https://github.com/TheZeroSlave/zapsentry)
- Linter: [golangci/golangci-lint](https://github.com/golangci/golangci-lint)
- Tests: [stretchr/testify](https://github.com/stretchr/testify)

### Run dev with docker-compose
```bash
docker-compose -f docker-compose.dev.yml up -d
```

### Run tests
```bash
./scripts/test.sh
```

### RMQ worker with using [spf13/cobra](https://github.com/spf13/cobra) + [pf13/viper](https://github.com/spf13/viper) tools [↵](https://github.com/pog7x/go-rmq-worker-tmpl/tree/master-cobra)