link

package
v0.1.0-beta17 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerLink struct {
	// contains filtered or unexported fields
}
func NewPeerLink(
	parentCtx context.Context,
	selfID uint32,
	otherID uint32,
	wgClient *wgctrl.Client,
	frrManager *frr.FrrConfigManager,
) (*PeerLink, error)

func (*PeerLink) Dispose

func (c *PeerLink) Dispose() error

func (*PeerLink) HolePunchTunnel

func (c *PeerLink) HolePunchTunnel(
	parentCtx context.Context,
	holepunchClient proto.HolePunchingServiceClient,
) (*proto.HolePunchingCompleteResponse, error)

func (*PeerLink) InitializePeerConnection

func (c *PeerLink) InitializePeerConnection(
	Endpoint *net.UDPAddr,
	PublicKey wgtypes.Key,
	PresharedKey wgtypes.Key,
) error

func (*PeerLink) Initialized

func (c *PeerLink) Initialized() bool

func (*PeerLink) PublicKey

func (c *PeerLink) PublicKey() wgtypes.Key

func (*PeerLink) RemoteID

func (c *PeerLink) RemoteID() uint32

Jump to

Keyboard shortcuts

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