wg-portal/internal/app/api/v0/model
h44z be29abd29a
add webhook event for peer state change (#444) (#468)
* 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"
  }
}
```

* add webhook docs (#444)
2025-06-27 12:37:10 +02:00
..
model_options.go chore: get rid of static code warnings 2025-02-28 16:11:55 +01:00
models.go add minimum password length check 2025-05-16 09:55:35 +02:00
models_audit.go feat: add simple audit ui 2025-03-29 16:42:31 +01:00
models_authentication.go add webauthn (passkey) support 2025-05-12 22:53:43 +02:00
models_interface.go generate interface and peer configuration filenames in backend only (#395) 2025-04-19 13:12:31 +02:00
models_peer.go add webhook event for peer state change (#444) (#468) 2025-06-27 12:37:10 +02:00
models_user.go frontend: fix locked user display (#367) 2025-02-17 08:18:36 +01:00