wg-portal/internal/domain
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
..
audit.go feat: add simple audit ui 2025-03-29 16:42:31 +01:00
auth.go chore: use interfaces for all other services 2025-03-23 23:09:47 +01:00
base.go chore: get rid of static code warnings 2025-02-28 16:11:55 +01:00
context.go fix user creation (#411) 2025-04-21 15:29:53 +02:00
crypto.go allow to encrypt keys in db, add browser-only key generator, add hints that private keys are stored on the server (#420) 2025-05-02 18:48:35 +02:00
crypto_test.go chore: use interfaces for all other services 2025-03-23 23:09:47 +01:00
errors.go API - CRUD for peers, interfaces and users (#340) 2025-01-11 18:44:55 +01:00
interface.go generate interface and peer configuration filenames in backend only (#395) 2025-04-19 13:12:31 +02:00
interface_test.go chore: use interfaces for all other services 2025-03-23 23:09:47 +01:00
ip.go chore: cleanup code formatting 2025-02-28 08:37:55 +01:00
ip_test.go V2 alpha - initial version (#172) 2023-08-04 13:34:18 +02:00
mail.go V2 alpha - initial version (#172) 2023-08-04 13:34:18 +02:00
options.go chore: update dependencies, refactor option types 2024-10-15 15:44:47 +02:00
options_test.go chore: use interfaces for all other services 2025-03-23 23:09:47 +01:00
peer.go fix self-provisioned peer-generation (#452) 2025-06-08 11:17:04 +02:00
peer_test.go Implement EditableKeys parameter (#417) 2025-04-30 22:05:40 +02:00
statistics.go add webhook event for peer state change (#444) (#468) 2025-06-27 12:37:10 +02:00
statistics_test.go add webhook event for peer state change (#444) (#468) 2025-06-27 12:37:10 +02:00
user.go add minimum password length check 2025-05-16 09:55:35 +02:00
user_test.go chore: use interfaces for all other services 2025-03-23 23:09:47 +01:00