pdisc

package
v0.5.65 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package pdisc implements peer discovery based on a shared community passphrase.

Index

Constants

This section is empty.

Variables

View Source
var Get = daemon.RegisterFeature(New, 60) //nolint:gochecknoglobals

Functions

This section is empty.

Types

type Interface

type Interface struct {
	*daemon.Interface
	// contains filtered or unexported fields
}

func New

func New(i *daemon.Interface) (*Interface, error)

func (*Interface) ApplyDescription

func (i *Interface) ApplyDescription(cp *daemon.Peer)

func (*Interface) Close

func (i *Interface) Close() error

func (*Interface) Description

func (i *Interface) Description(cp *daemon.Peer) *pdiscproto.PeerDescription

func (*Interface) OnInterfaceModified

func (i *Interface) OnInterfaceModified(ci *daemon.Interface, old *wg.Interface, m daemon.InterfaceModifier)

func (*Interface) OnPeerAdded

func (i *Interface) OnPeerAdded(p *daemon.Peer)

func (*Interface) OnPeerDescription

func (i *Interface) OnPeerDescription(d *pdiscproto.PeerDescription) error

func (*Interface) OnPeerRemoved

func (i *Interface) OnPeerRemoved(_ *daemon.Peer)

func (*Interface) OnSignalingMessage

func (i *Interface) OnSignalingMessage(kp *crypto.PublicKeyPair, msg *signaling.Message)

func (*Interface) Start

func (i *Interface) Start() error

Jump to

Keyboard shortcuts

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