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

# Functions

NewAtomicConnStatus creates a new AtomicConnStatus with the given initial status.
NewConn creates a new not opened Conn to the remote peer.
NewConnectionAlreadyClosed creates a new ConnectionAlreadyClosedError error.
NewConnectionClosedError creates a new ConnectionClosedError error.
NewConnectionDisconnectedError creates a new ConnectionDisconnectedError error.
NewConnectionTimeoutError creates a new ConnectionTimeoutError error.
No description provided by the author
NewRecorder returns a new Status instance.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

StatusConnected indicate the peer is in connected state.
StatusConnecting indicate the peer is in connecting state.
StatusDisconnected indicate the peer is in disconnected state.

# Variables

No description provided by the author

# Structs

AtomicConnStatus is a thread-safe wrapper for ConnStatus.
No description provided by the author
ConnConfig is a peer Connection configuration.
ConnectionAlreadyClosedError is an error indicating that a peer Conn has been already closed and the invocation of the Close() method has been performed over a closed connection.
ConnectionClosedError is an error indicating that a peer Conn has been forcefully closed.
ConnectionDisconnectedError is an error indicating that a peer Conn has ctx from the remote.
ConnectionTimeoutError is an error indicating that a peer Conn has been timed out.
FullStatus contains the full state held by the Status instance.
No description provided by the author
No description provided by the author
No description provided by the author
IceCredentials ICE protocol credentials struct.
LocalPeerState contains the latest state of the local peer.
ManagementState contains the latest state of a management connection.
NSGroupState represents the status of a DNS server group, including associated domains, whether it's enabled, and the last error message encountered during probing.
OfferAnswer represents a session establishment offer or answer.
No description provided by the author
RosenpassState contains the latest state of the Rosenpass configuration.
No description provided by the author
SignalState contains the latest state of a signal connection.
State contains the latest state of a peer.
Status holds a state of peers, signal, management connections and relays.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Listener is a callback type about the NetBird network connection state.

# Type aliases

No description provided by the author
ConnStatus describe the status of a peer's connection.