1
Fork 0
generated from lucas/rust-template
ntfy-collector/src
Lucas Schwiderski d2cb39f9a2
Rework API tasks
GitHub expects a 'Last-Modified' header, and honoring an
'X-Poll-Interval' header for their notifications endpoint.
Other services might also have certain limitations that require
customizing every API query individually.

Since that's not possible if API tasks are configured once and run off
of an interval, this reworks them so that the config needs to trigger
every query individually. A `delay` parameter allows re-creating the
same intervals that were possible before.

This also moves the configuration for Ntfy to the Lua file.
2024-09-18 11:31:10 +02:00
..
worker Rework API tasks 2024-09-18 11:31:10 +02:00
main.rs Rework API tasks 2024-09-18 11:31:10 +02:00
types.rs Rework API tasks 2024-09-18 11:31:10 +02:00