wg-portal/internal/app
Christoph Haas 3c72a26e91
add webhook event for peer state change (#444)
new event types: connect and disconnect

example payload:

```json
{
  "event": "connect",
  "entity": "peer",
  "identifier": "Fb5TaziAs1WrPBjC/MFbWsIelVXvi0hDKZ3YQM9wmU8=",
  "payload": {
    "PeerId": "Fb5TaziAs1WrPBjC/MFbWsIelVXvi0hDKZ3YQM9wmU8=",
    "IsConnected": true,
    "IsPingable": false,
    "LastPing": null,
    "BytesReceived": 1860,
    "BytesTransmitted": 10824,
    "LastHandshake": "2025-06-26T23:04:33.325216659+02:00",
    "Endpoint": "10.55.66.77:33874",
    "LastSessionStart": "2025-06-26T22:50:40.10221606+02:00"
  }
}
```
2025-06-26 23:25:53 +02:00
..
api add webhook event for peer state change (#444) 2025-06-26 23:25:53 +02:00
audit fix: fix peer audit event 2025-03-30 23:16:10 +02:00
auth add webauthn (passkey) support 2025-05-12 22:53:43 +02:00
configfile add simple webhook feature for peer, interface and user events (#398) 2025-04-19 21:29:26 +02:00
mail chore: use interfaces for all other services 2025-03-23 23:09:47 +01:00
route chore: use interfaces for all other services 2025-03-23 23:09:47 +01:00
users add minimum password length check 2025-05-16 09:55:35 +02:00
webhooks add webhook event for peer state change (#444) 2025-06-26 23:25:53 +02:00
wireguard add webhook event for peer state change (#444) 2025-06-26 23:25:53 +02:00
app.go chore: use interfaces for all other services 2025-03-23 23:09:47 +01:00
cli.go chore: get rid of static code warnings 2025-02-28 16:11:55 +01:00
eventbus.go add webhook event for peer state change (#444) 2025-06-26 23:25:53 +02:00
gorm_encryption.go fix gorm error if no encryption is used (#427) 2025-05-04 17:42:13 +02:00
migrate_v1.go chore: replace logrus with standard lib log/slog 2025-03-02 08:51:13 +01:00