add api for access log events

This commit is contained in:
pascal
2026-01-29 14:27:57 +01:00
parent f204da0d68
commit 8e0b7b6c25
23 changed files with 744 additions and 188 deletions
+4 -1
View File
@@ -3,12 +3,14 @@ package roundtrip
import (
"context"
"fmt"
"io"
"net/http"
"sync"
"time"
"github.com/netbirdio/netbird/client/embed"
log "github.com/sirupsen/logrus"
"github.com/netbirdio/netbird/client/embed"
)
const deviceNamePrefix = "ingress-"
@@ -34,6 +36,7 @@ func (n *NetBird) AddPeer(ctx context.Context, domain, key string) error {
DeviceName: deviceNamePrefix + domain,
ManagementURL: n.mgmtAddr,
SetupKey: key,
LogOutput: io.Discard,
})
if err != nil {
return fmt.Errorf("create netbird client: %w", err)