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

Method Ping

vpn/client.go:46–48  ·  view source on GitHub ↗
(ctx context.Context, agentID uuid.UUID)

Source from the content-addressed store, hash-verified

44}
45
46func (c *vpnConn) Ping(ctx context.Context, agentID uuid.UUID) (time.Duration, bool, *ipnstate.PingResult, error) {
47 return c.Conn.Ping(ctx, tailnet.TailscaleServicePrefix.AddrFromUUID(agentID))
48}
49
50func (c *vpnConn) CurrentWorkspaceState() (tailnet.WorkspaceUpdate, error) {
51 return c.updatesCtrl.CurrentState()

Callers

nothing calls this directly

Calls 2

AddrFromUUIDMethod · 0.80
PingMethod · 0.65

Tested by

no test coverage detected