nozzle
Nozzle
Broadcast PostgreSQL database events to Redis channel subscribers.
Installation
-
Add the dependency to your
shard.yml
:dependencies: nozzle: github: grkek/nozzle
-
Run
shards install
Usage
require "nozzle"
app = Nozzle::Application.new(
database_url: "DATABASE_URL",
database_channel: "DATABASE_CHANNEL",
handlers: [Nozzle::Handlers::Redis.new(url: "REDIS_URL")] of Nozzle::Handlers::Base
)
app.run
This can be run in the background using spawn do
or spawn {}
.
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/grkek/nozzle/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Giorgi Kavrelishvili - creator and maintainer
Repository
nozzle
Owner
Statistic
- 0
- 0
- 0
- 0
- 3
- about 2 years ago
- September 23, 2022
License
MIT License
Links
Synced at
Fri, 22 Nov 2024 10:51:27 GMT
Languages