wg-portal/internal
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
..
adapters add webhook event for peer state change (#444) (#468) 2025-06-27 12:37:10 +02:00
app add webhook event for peer state change (#444) (#468) 2025-06-27 12:37:10 +02:00
config Option to limit peer count that a normal user can create (#457) 2025-06-26 20:17:45 +02:00
domain add webhook event for peer state change (#444) (#468) 2025-06-27 12:37:10 +02:00
lowlevel chore: cleanup code formatting 2025-02-28 08:37:55 +01:00
ldap_utils.go chore: replace logrus with standard lib log/slog 2025-03-02 08:51:13 +01:00
logger.go chore: replace logrus with standard lib log/slog 2025-03-02 08:51:13 +01:00
util.go chore: replace logrus with standard lib log/slog 2025-03-02 08:51:13 +01:00
version.go V2 alpha - initial version (#172) 2023-08-04 13:34:18 +02:00