2023-04-13 15:15:29 -07:00
|
|
|
# Events
|
|
|
|
This is a list of events that gochan may trigger at some point, that can be used in the plugin system.
|
|
|
|
|
2023-04-20 08:25:21 -07:00
|
|
|
- **db-connected**
|
|
|
|
- Triggered after gochan successfully connects to the database but before it is checked and initialized (db version checking, provisisioning, etc)
|
|
|
|
|
|
|
|
- **db-initialized**
|
|
|
|
- Triggered after the database is successfully initialized (db version checking, provisioning, etc)
|
|
|
|
|
2023-04-13 15:15:29 -07:00
|
|
|
- **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
|
2023-04-20 08:25:21 -07:00
|
|
|
|
|
|
|
- **shutdown**
|
|
|
|
- Triggered when gochan is about to shut down, in `main()` as a deferred call
|
|
|
|
|
|
|
|
- **startup**
|
|
|
|
- Triggered when gochan first starts after its plugin system is initialized. This is (or at least should be) only triggered once.
|
|
|
|
|
2023-04-13 15:15:29 -07:00
|
|
|
- **upload-saved**
|
|
|
|
- Triggered by the `posting` package when an upload is saved to the disk but before thumbnails are generated.
|