in
Clone
https://git.tahinli.com/Tahinli/in.git
0 watching0 forksRustAGPL-3.0528.7 KiB9215377Tahinli27 days ago37 commits
| 1 | //! The audit writer of the web layer: appends one entry for each admin write, after the change commits. |
| 2 | //! |
| 3 | //! A failed append is logged and never fails the request that made the change, because the change has |
| 4 | //! already happened and the person asking should not see an error for it. A successful append wakes the |
| 5 | //! open admin pages. `data` is built by the callers from ids and values only; secrets never go in it. |
| 6 | |
| 7 | use NewAudit; |
| 8 | |
| 9 | use crateTopic; |
| 10 | use crateAppState; |
| 11 | |
| 12 | /// What one audit entry records: who acted, what they did, and to what. |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | /// Appends `entry`. Never fails: a failure is logged with the verb, and the caller carries on. |
| 27 | pub async |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 |