wgtunnel

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

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.

func (*TunnelDevice) Run

func (td *TunnelDevice) Run() error

Run runs the device.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL