MCPcopy Index your code
hub / github.com/coder/coder / remove

Method remove

tailnet/tunnel.go:181–190  ·  view source on GitHub ↗
(src, dst uuid.UUID)

Source from the content-addressed store, hash-verified

179}
180
181func (s *tunnelStore) remove(src, dst uuid.UUID) {
182 delete(s.bySrc[src], dst)
183 if len(s.bySrc[src]) == 0 {
184 delete(s.bySrc, src)
185 }
186 delete(s.byDst[dst], src)
187 if len(s.byDst[dst]) == 0 {
188 delete(s.byDst, dst)
189 }
190}
191
192func (s *tunnelStore) removeAll(src uuid.UUID) {
193 for dst := range s.bySrc[src] {

Callers 15

removeAllMethod · 0.95
removeTunnelLockedMethod · 0.80
TestTunnelStore_BidirFunction · 0.80
docs.test.tsFile · 0.80
applyEmbedThemeFunction · 0.80
AgentEmbedPageFunction · 0.80
AgentsPageFunction · 0.80
AgentChatInputFunction · 0.80
handleRemoveFunction · 0.80
teardownFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestTunnelStore_BidirFunction · 0.64
seedInitialMetadataFunction · 0.64