Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ UpdateDERP
Method
UpdateDERP
tailnet/test/peer.go:116–120 ·
view source on GitHub ↗
(derp int32)
Source
from the content-addressed store, hash-verified
114
}
115
116
func
(p *Peer) UpdateDERP(derp int32) {
117
p.t.Helper()
118
node := &proto.Node{PreferredDerp: derp}
119
p.UpdateNode(node)
120
}
121
122
func
(p *Peer) UpdateNode(node *proto.Node) {
123
p.t.Helper()
Callers
15
TestCoordinator
Function · 0.95
GracefulDisconnectTest
Function · 0.95
LostTest
Function · 0.95
BidirectionalTunnels
Function · 0.95
ReadyForHandshakeTest
Function · 0.95
ReadyForHandshakeNoPermissionTest
Function · 0.95
TestPGCoordinatorSingle_MissedHeartbeats_NoDrop
Function · 0.95
TestPGCoordinator_MultiCoordinatorAgent
Function · 0.95
TestPGCoordinatorDual_FailedHeartbeat
Function · 0.95
TestPGCoordinatorDual_PeerReconnect
Function · 0.95
TestPGCoordinator_MultiAgent
Function · 0.95
TestPGCoordinator_MultiAgent_UnsubscribeRace
Function · 0.95
Calls
2
UpdateNode
Method · 0.95
Helper
Method · 0.65
Tested by
15
TestCoordinator
Function · 0.76
TestPGCoordinatorSingle_MissedHeartbeats_NoDrop
Function · 0.76
TestPGCoordinator_MultiCoordinatorAgent
Function · 0.76
TestPGCoordinatorDual_FailedHeartbeat
Function · 0.76
TestPGCoordinatorDual_PeerReconnect
Function · 0.76
TestPGCoordinator_MultiAgent
Function · 0.76
TestPGCoordinator_MultiAgent_UnsubscribeRace
Function · 0.76
TestPGCoordinator_MultiAgent_Unsubscribe
Function · 0.76
TestPGCoordinator_MultiAgent_MultiCoordinator
Function · 0.76
TestPGCoordinator_MultiAgent_MultiCoordinator_UpdateBeforeSubscribe
Function · 0.76
TestPGCoordinator_MultiAgent_TwoAgents
Function · 0.76
TestPGCoordinatorSingle_ClientWithoutAgent
Function · 0.64