nodeIDsLocked returns the node IDs of all nodes in the server, except for the node with the given ID.
(except tailcfg.NodeID)
| 615 | // nodeIDsLocked returns the node IDs of all nodes in the server, except |
| 616 | // for the node with the given ID. |
| 617 | func (s *Server) nodeIDsLocked(except tailcfg.NodeID) []tailcfg.NodeID { |
| 618 | var ids []tailcfg.NodeID |
| 619 | for _, n := range s.nodes { |
| 620 | if n.ID == except { |
| 621 | continue |
| 622 | } |
| 623 | ids = append(ids, n.ID) |
| 624 | } |
| 625 | return ids |
| 626 | } |
| 627 | |
| 628 | // Node returns the node for nodeKey. It's always nil or cloned memory. |
| 629 | func (s *Server) Node(nodeKey key.NodePublic) *tailcfg.Node { |
no outgoing calls
no test coverage detected