mirror of https://github.com/h44z/wg-portal.git
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"
}
}
```
|
||
|---|---|---|
| .. | ||
| api | ||
| audit | ||
| auth | ||
| configfile | ||
| route | ||
| users | ||
| webhooks | ||
| wireguard | ||
| app.go | ||
| cli.go | ||
| eventbus.go | ||
| gorm_encryption.go | ||
| migrate_v1.go | ||