moonfire-nvr/server
Scott Lamb 1e314e09d0 refine timestamps in json signals api
*   API change: in update signals, allow setting a start time relative
    to now. This is an accuracy improvement in the case where the client
    has been retrying an initial request for a while. Kind of an obscure
    corner case but easy enough to address. And use a more convenient
    enum representation.

*   in update signals, choose `now` before acquiring the database lock.
    If lock acquisition takes a long time, this more accurately reflects
    the time the caller intended.

*   in general, make Time and Duration (de)serializable and use them
    in json types. This makes the types more self-describing, with
    better debug printing on both the server side and on the client
    library (in moonfire-playground). To make this work, base has to
    import serde which initially seemed like poor layering to me, but
    serde seems to be imported in some pretty foundational Rust crates
    for this reason. I'll go with it.
2021-04-21 21:06:15 -07:00
..
base refine timestamps in json signals api 2021-04-21 21:06:15 -07:00
db fix request of death in /api/signals 2021-04-12 21:57:16 -07:00
src refine timestamps in json signals api 2021-04-21 21:06:15 -07:00
Cargo.lock refine timestamps in json signals api 2021-04-21 21:06:15 -07:00
Cargo.toml Prepare v0.6.3 release 2021-03-31 15:21:09 -07:00