handlers

package
v0.5.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeCommandHandler

type ExchangeCommandHandler struct {
	// contains filtered or unexported fields
}

func NewExchangeCommandHandler

func NewExchangeCommandHandler() *ExchangeCommandHandler

func (*ExchangeCommandHandler) AddPeer

func (h *ExchangeCommandHandler) AddPeer(pid rp.PeerID, cmd []string)

func (*ExchangeCommandHandler) HandshakeCompleted

func (h *ExchangeCommandHandler) HandshakeCompleted(pid rp.PeerID, key rp.Key)

func (*ExchangeCommandHandler) RemovePeer

func (h *ExchangeCommandHandler) RemovePeer(pid rp.PeerID)

type KeyoutFileHandler

type KeyoutFileHandler struct {
	// contains filtered or unexported fields
}

func NewkeyoutHandler

func NewkeyoutHandler() *KeyoutFileHandler

func (*KeyoutFileHandler) AddPeer

func (h *KeyoutFileHandler) AddPeer(pid rp.PeerID, path string) error

func (*KeyoutFileHandler) HandshakeCompleted

func (h *KeyoutFileHandler) HandshakeCompleted(pid rp.PeerID, key rp.Key)

func (*KeyoutFileHandler) HandshakeExpired

func (h *KeyoutFileHandler) HandshakeExpired(pid rp.PeerID)

func (*KeyoutFileHandler) RemovePeer

func (h *KeyoutFileHandler) RemovePeer(pid rp.PeerID)

type WireGuardHandler

type WireGuardHandler struct {
	// contains filtered or unexported fields
}

func NewWireGuardHandler

func NewWireGuardHandler() (hdlr *WireGuardHandler, err error)

func (*WireGuardHandler) AddPeer

func (h *WireGuardHandler) AddPeer(pid rp.PeerID, intf string, pk rp.Key)

func (*WireGuardHandler) HandshakeCompleted

func (h *WireGuardHandler) HandshakeCompleted(pid rp.PeerID, key rp.Key)

func (*WireGuardHandler) HandshakeExpired

func (h *WireGuardHandler) HandshakeExpired(pid rp.PeerID)

func (*WireGuardHandler) RemovePeer

func (h *WireGuardHandler) RemovePeer(pid rp.PeerID)

Jump to

Keyboard shortcuts

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