im
Clone
https://git.tahinli.com/Tahinli/im.git
0 watching0 forksRustAGPL-3.0542.8 KiBb9f0726Tahinli27 days ago34 commits
| 1 | //! The audit writer of the web layer. Every change of an account, a session or a sign-in goes |
| 2 | //! through [`record`]. |
| 3 | //! |
| 4 | //! The entry is written after the change has committed. A failed write is logged and never fails |
| 5 | //! the request: a person who has just signed in should not see an error because the log was busy. |
| 6 | //! Nothing secret goes in `data`; callers pass counts, reasons and ids only. |
| 7 | |
| 8 | use AuditAction; |
| 9 | use NewAudit; |
| 10 | use Value; |
| 11 | use ; |
| 12 | |
| 13 | use crateclient_addr; |
| 14 | use crateAppState; |
| 15 | |
| 16 | /// Who performed the action. |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | /// Appends one entry. `target` is the kind and id of what the action was about; `data` is JSON |
| 26 | /// (`Value::Null` for none). |
| 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 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 |