wip: implement mikrotik rest api client (#426)

This commit is contained in:
Christoph Haas
2025-05-31 17:17:08 +02:00
parent d5ce889e4f
commit e934232e0b
8 changed files with 574 additions and 23 deletions

View File

@@ -181,6 +181,8 @@ type PhysicalPeer struct {
BytesUpload uint64 // upload bytes are the number of bytes that the remote peer has sent to the server
BytesDownload uint64 // upload bytes are the number of bytes that the remote peer has received from the server
BackendExtras map[string]any // additional backend specific extras, e.g. for the mikrotik backend this contains the name of the peer
}
func (p PhysicalPeer) GetPresharedKey() *wgtypes.Key {