pollin v0.1.0 Pollin.Backend.Memory.CallbackWorker
Worker for callbacks
Summary
Functions
Count all callbacks of an endpoint
Count all callbacks of an endpoint with filter options
Remove a callback
Dump all callbacks of an endpoint
Pop a callback from endpoint
Fetch list of callbacks from endpoint queue by given offset and limit
Fetch reverse list of callbacks from endpoint queue by given offset and limit
Pop a callback from endpoint
Pop list of callbacks from endpoint queue by given options offset and limit
Push a callback resource to an endpoint
Reset all callbacks of an endpoint
Update status of a callback
Functions
Count all callbacks of an endpoint with filter options
Example
count = CallbackWorker.count(id, %{status: "unprocessed"})
Fetch list of callbacks from endpoint queue by given offset and limit
Example
callbacks = CallbackWorker.fetch(id, opts)
Fetch reverse list of callbacks from endpoint queue by given offset and limit
Example
callbacks = CallbackWorker.fetch(id, opts)
Pop list of callbacks from endpoint queue by given options offset and limit
Example
callbacks = CallbackWorker.pop(id, opts)