1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-03 19:56:22 -07:00

Add a list of events for reference.

Also have it trigger an event when an upload is written to the disk and log warnings if an event recovers from panic()
This commit is contained in:
Eggbertx 2023-04-13 15:15:29 -07:00
parent 1968cb77d2
commit 623e2f4352
3 changed files with 22 additions and 1 deletions

7
events_triggered.md Normal file
View file

@ -0,0 +1,7 @@
# Events
This is a list of events that gochan may trigger at some point, that can be used in the plugin system.
- **incoming-upload**
- Triggered by the `gcsql` package when an upload is attached to a post. It is triggered before the upload is entered in the database
- **upload-saved**
- Triggered by the `posting` package when an upload is saved to the disk but before thumbnails are generated.