Commit Graph

4 Commits

Author SHA1 Message Date
52b1a64d7e Defer writing to file cache to separate thread
This allows the plugin to get the data faster while the cache update continues in the background.
2020-11-07 00:34:09 -05:00
127a68687e Write metadata to file cache
Then, before a GET, read the metadata and add any etag to the headers and handle 304 in response.
2020-11-05 19:19:17 -05:00
e0f0f26943 Remove unneeded Sync and Send impls 2020-10-18 20:59:18 -04:00
6513b2903a Major refactor and clean up
Split out big lib.rs into separate modules for each endpoint.

Now using FFIResult in all functions requesting the API.

Added unit tests for all functions.

Abstracted file caching behavior into cache.rs. Uses temp files in tests
2020-10-18 20:51:37 -04:00