mirror of
https://github.com/netbirdio/netbird.git
synced 2025-07-15 13:56:08 +02:00
Replace string to netip.Prefix --------- Co-authored-by: Hakan Sariman <hknsrmn46@gmail.com>
20 lines
487 B
Go
20 lines
487 B
Go
package peer
|
|
|
|
import (
|
|
"net"
|
|
"net/netip"
|
|
"time"
|
|
|
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
|
|
|
"github.com/netbirdio/netbird/client/iface/configurer"
|
|
"github.com/netbirdio/netbird/client/iface/wgproxy"
|
|
)
|
|
|
|
type WGIface interface {
|
|
UpdatePeer(peerKey string, allowedIps []netip.Prefix, keepAlive time.Duration, endpoint *net.UDPAddr, preSharedKey *wgtypes.Key) error
|
|
RemovePeer(peerKey string) error
|
|
GetStats(peerKey string) (configurer.WGStats, error)
|
|
GetProxy() wgproxy.Proxy
|
|
}
|