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

Function coordToHTML

enterprise/tailnet/htmldebug.go:94–99  ·  view source on GitHub ↗
(d database.TailnetCoordinator, now time.Time)

Source from the content-addressed store, hash-verified

92}
93
94func coordToHTML(d database.TailnetCoordinator, now time.Time) *HTMLCoordinator {
95 return &HTMLCoordinator{
96 ID: d.ID,
97 HeartbeatAge: now.Sub(d.HeartbeatAt),
98 }
99}
100
101func peerToHTML(d database.TailnetPeer, now time.Time) (*HTMLPeer, error) {
102 node := &proto.Node{}

Callers 1

getDebugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected