Documentation ¶
Overview ¶
Package pdisc implements peer discovery based on a shared community passphrase.
Index ¶
- Variables
- type Interface
- func (i *Interface) ApplyDescription(cp *daemon.Peer)
- func (i *Interface) Close() error
- func (i *Interface) Description(cp *daemon.Peer) *pdiscproto.PeerDescription
- func (i *Interface) OnInterfaceModified(ci *daemon.Interface, old *wg.Interface, m daemon.InterfaceModifier)
- func (i *Interface) OnPeerAdded(p *daemon.Peer)
- func (i *Interface) OnPeerDescription(d *pdiscproto.PeerDescription) error
- func (i *Interface) OnPeerRemoved(_ *daemon.Peer)
- func (i *Interface) OnSignalingMessage(kp *crypto.PublicKeyPair, msg *signaling.Message)
- func (i *Interface) Start() error
Constants ¶
This section is empty.
Variables ¶
View Source
var Get = daemon.RegisterFeature(New, 60) //nolint:gochecknoglobals
Functions ¶
This section is empty.
Types ¶
type Interface ¶
func (*Interface) ApplyDescription ¶
func (*Interface) Description ¶
func (i *Interface) Description(cp *daemon.Peer) *pdiscproto.PeerDescription
func (*Interface) OnInterfaceModified ¶
func (*Interface) OnPeerAdded ¶
func (*Interface) OnPeerDescription ¶
func (i *Interface) OnPeerDescription(d *pdiscproto.PeerDescription) error
func (*Interface) OnPeerRemoved ¶
func (*Interface) OnSignalingMessage ¶
func (i *Interface) OnSignalingMessage(kp *crypto.PublicKeyPair, msg *signaling.Message)
Click to show internal directories.
Click to hide internal directories.