Documentation ¶
Index ¶
- type Manager
- func (m *Manager) Close() error
- func (m *Manager) GetAddress() *net.UDPAddr
- func (m *Manager) GetPubKey() []byte
- func (m *Manager) OnConnected(remoteWireGuardKey string, remoteRosenpassPubKey []byte, wireGuardIP string, ...)
- func (m *Manager) OnDisconnected(peerKey string, wgIP string)
- func (m *Manager) Run() error
- type NetbirdHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
NewManager creates a new Rosenpass manager
func (*Manager) GetAddress ¶
GetAddress returns the address of the Rosenpass server
func (*Manager) OnConnected ¶
func (m *Manager) OnConnected(remoteWireGuardKey string, remoteRosenpassPubKey []byte, wireGuardIP string, remoteRosenpassAddr string)
OnConnected is a handler function that is triggered when a connection to a remote peer establishes
func (*Manager) OnDisconnected ¶
type NetbirdHandler ¶
type NetbirdHandler struct {
// contains filtered or unexported fields
}
func NewNetbirdHandler ¶
func NewNetbirdHandler(preSharedKey *[32]byte, wgIfaceName string) (hdlr *NetbirdHandler, err error)
func (*NetbirdHandler) HandshakeCompleted ¶
func (h *NetbirdHandler) HandshakeCompleted(pid rp.PeerID, key rp.Key)
func (*NetbirdHandler) HandshakeExpired ¶
func (h *NetbirdHandler) HandshakeExpired(pid rp.PeerID)
func (*NetbirdHandler) RemovePeer ¶
func (h *NetbirdHandler) RemovePeer(pid rp.PeerID)
Click to show internal directories.
Click to hide internal directories.