Sha256: a3c01cc6541c5139332ec6008088a5605250a1d88c8d18bfffb4c8f5f65bfab6
Contents?: true
Size: 1.44 KB
Versions: 3
Compression:
Stored size: 1.44 KB
Contents
# Totoro, a RabbitMQ Util Totoro is a RabbitMQ util that focuses on samplify queue operation. ## Installation #### Install gem Add this line to your application's Gemfile: ```ruby gem 'totoro' ``` And then execute: $ bundle #### Generate configuration file ``` rails g totoro:config ``` ## Quick Start #### Enqueue ``` Totoro::Queue.enqueue('queue', payload) ``` #### Dequeue To create a dequeue daemon, first you need to create a worker ``` rails g totoro:wroker <worker_name> <queue_name> ``` after that, add business logic in the process method ``` module Worker class WorkerClass QUEUE = 'queue_name' def process(payload, _metadata, _delivery_info) # worker process end end end ``` finally, run the background deamon ``` bundle exec totoro worker_class ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/blockchaintech-au/totoro. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). ## Code of Conduct Everyone interacting in the Totoro project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/totoro/blob/master/CODE_OF_CONDUCT.md).
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
totoro-0.1.5 | README.md |
totoro-0.1.4 | README.md |
totoro-0.1.3 | README.md |