mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-28 23:39:07 +01:00
[management] batch disconnect and lock free reconnect (#8373)
This commit is contained in:
@@ -18,6 +18,9 @@ type PeerSync struct {
|
||||
// UpdateAccountPeers indicate updating account peers,
|
||||
// which occurs when the peer's metadata is updated
|
||||
UpdateAccountPeers bool
|
||||
// Settings are the account settings the caller already read for this request.
|
||||
// When nil they are loaded from the store.
|
||||
Settings *Settings
|
||||
}
|
||||
|
||||
// PeerLogin used as a data object between the gRPC API and Manager on Login request.
|
||||
@@ -37,4 +40,14 @@ type PeerLogin struct {
|
||||
|
||||
// ExtraDNSLabels is a list of extra DNS labels that the peer wants to use
|
||||
ExtraDNSLabels []string
|
||||
// Settings are the account settings the caller already read for this request.
|
||||
// When nil they are loaded from the store.
|
||||
Settings *Settings
|
||||
}
|
||||
|
||||
// PeerSession identifies the sync session a peer is currently owned by.
|
||||
type PeerSession struct {
|
||||
AccountID string
|
||||
PeerID string
|
||||
SessionStartedAt int64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user