consbio / mbtileserver

Basic Go server for mbtiles
ISC License
658 stars 104 forks source link

Consider adding a service reload API endpoint #133

Open brendan-ward opened 2 years ago

brendan-ward commented 2 years ago

As mentioned in #128

We may want to consider adding a reload API endpoint to trigger reload of a specific service or set of services, rather than restarting the entire server process. We'd probably need to set a mutex (so multiple calls to /reload in separate threads don't collide), then uses something similar to what we're doing in the filesystem watcher to rescan the registered directories and re-add those that exist, or take a service ID and reload just that one.

We need to figure out how to handle auth for this; some options: