Files
netbird/client/internal/wgproxy/proxy.go
2024-10-03 01:24:05 +02:00

15 lines
257 B
Go

package wgproxy
import (
"context"
"net"
)
// Proxy is a transfer layer between the relayed connection and the WireGuard
type Proxy interface {
AddTurnConn(ctx context.Context, turnConn net.Conn) (net.Addr, error)
Work()
Pause()
CloseConn() error
}