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

Function tunnelToHTML

enterprise/tailnet/htmldebug.go:116–123  ·  view source on GitHub ↗
(d database.TailnetTunnel, now time.Time)

Source from the content-addressed store, hash-verified

114}
115
116func tunnelToHTML(d database.TailnetTunnel, now time.Time) *HTMLTunnel {
117 return &HTMLTunnel{
118 CoordinatorID: d.CoordinatorID,
119 SrcID: d.SrcID,
120 DstID: d.DstID,
121 LastWriteAge: now.Sub(d.UpdatedAt),
122 }
123}
124
125var coordinatorDebugTmpl = `
126<!DOCTYPE html>

Callers 1

getDebugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected