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

Method Node

tailnet/conn.go:723–727  ·  view source on GitHub ↗

Node returns the last node that was sent to the node callback.

()

Source from the content-addressed store, hash-verified

721
722// Node returns the last node that was sent to the node callback.
723func (c *Conn) Node() *Node {
724 c.nodeUpdater.L.Lock()
725 defer c.nodeUpdater.L.Unlock()
726 return c.nodeUpdater.nodeLocked()
727}
728
729// This and below is taken _mostly_ verbatim from Tailscale:
730// https://github.com/tailscale/tailscale/blob/c88bd53b1b7b2fcf7ba302f2e53dd1ce8c32dad4/tsnet/tsnet.go#L459-L494

Callers 2

TestConn_UpdateDERPFunction · 0.95
TestConn_BlockEndpointsFunction · 0.95

Implementers 1

fakeConnvpn/tunnel_internal_test.go

Calls 3

nodeLockedMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by 2

TestConn_UpdateDERPFunction · 0.76
TestConn_BlockEndpointsFunction · 0.76