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