package
0.30.0
Repository: https://github.com/netbirdio/netbird.git
Documentation: pkg.go.dev

# Functions

AddDialerCloseHook allows adding a new hook to be executed on connection close.
AddDialerHook allows adding a new hook to be executed before dialing.
AddListenerCloseHook allows adding a new hook to be executed upon closing a UDP connection.
AddListenerWriteHook allows adding a new write hook to be executed before a UDP packet is sent.
No description provided by the author
No description provided by the author
No description provided by the author
GenerateConnID generates a unique identifier for each connection.
ListenUDP listens on the network address and returns a transport.UDPConn which includes support for write and close hooks.
NewDialer returns a customized net.Dialer with overridden Control method.
NewListener creates a new ListenerConfig instance.
RemoveDialerHooks removes all dialer hooks.
RemoveListenerHooks removes all dialer hooks.
No description provided by the author
SetSocketMark sets the SO_MARK option on the given socket connection.
No description provided by the author

# Constants

NetbirdFwmark is the fwmark value used by Netbird via wireguard.

# Structs

Conn wraps a net.Conn to override the Close method.
Dialer extends the standard net.Dialer with the ability to execute hooks before and after connections.
ListenerConfig extends the standard net.ListenConfig with the ability to execute hooks before responding via the socket and after closing.
PacketConn wraps net.PacketConn to override its WriteTo and Close methods to include hook functionality.
UDPConn wraps net.UDPConn to override its WriteTo and Close methods to include hook functionality.

# Type aliases

No description provided by the author
ConnectionID provides a globally unique identifier for network connections.
No description provided by the author
No description provided by the author
ListenerCloseHookFunc defines the function signature for close hooks for PacketConn.
ListenerWriteHookFunc defines the function signature for write hooks for PacketConn.
No description provided by the author