Documentation ¶
Overview ¶
Package wgtunnel provides a WireGuard tunnel device.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TunnelDevice ¶
type TunnelDevice struct {
// contains filtered or unexported fields
}
TunnelDevice is a tunnel device.
func NewTunnelDevice ¶
func NewTunnelDevice(iface string, mtu int, queuePair *wgbind.QueuePair, logger *zap.Logger) (*TunnelDevice, error)
NewTunnelDevice creates a new TunnelDevice.
func (*TunnelDevice) Close ¶
func (td *TunnelDevice) Close()
Close closes the device and waits for it to stop.
func (*TunnelDevice) IfaceName ¶
func (td *TunnelDevice) IfaceName() string
IfaceName returns the name of the interface.
func (*TunnelDevice) IsClosed ¶
func (td *TunnelDevice) IsClosed() bool
IsClosed returns true if the device is closed.
Directories ¶
Path | Synopsis |
---|---|
Package wgbind provides a WireGuard conn.Bind implementation that can be used to proxy wireguard packets over other connections.
|
Package wgbind provides a WireGuard conn.Bind implementation that can be used to proxy wireguard packets over other connections. |
Package wggrpc provides a WireGuard over GRPC client and server implementation.
|
Package wggrpc provides a WireGuard over GRPC client and server implementation. |
Click to show internal directories.
Click to hide internal directories.