# README
SneakerWorker for Golang
Dependencies 依赖
- RabbitMQ
Usage 使用方法
1.在你的项目中的config目录下创建以下两个文件
amqp.yml
workers.yml
This is a example.
2.workers
3.main
workers.yml配置说明
---
- name: TreatWorker # worker的名称
exchange: sneaker.example.default # 消息经过的Exchange
routing_key: sneaker.example.treat # 消息经过的routing_key
queue: sneaker.example.treat # 消息进入的queue
durable: true
log: logs/treatWorker.log # 自定义日志文件
threads: 1 # 并发处理数量
steps: # 重试队列的延时配置
- 5000 # 5 Second
- 30000 # 30 Second
- 60000 # 1 Minute
# Packages
No description provided by the author
# Functions
No description provided by the author
# Constants
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author