MCPcopy Index your code
hub / github.com/tailscale/tailscale / AddPingRequest

Method AddPingRequest

tstest/integration/testcontrol/testcontrol.go:241–243  ·  view source on GitHub ↗

AddPingRequest sends the ping pr to nodeKeyDst. It reports whether the message was enqueued. That is, it reports whether nodeKeyDst was connected.

(nodeKeyDst key.NodePublic, pr *tailcfg.PingRequest)

Source from the content-addressed store, hash-verified

239// It reports whether the message was enqueued. That is, it reports whether
240// nodeKeyDst was connected.
241func (s *Server) AddPingRequest(nodeKeyDst key.NodePublic, pr *tailcfg.PingRequest) bool {
242 return s.addDebugMessage(nodeKeyDst, pr)
243}
244
245// c2nRoundTripper is an http.RoundTripper that sends requests to a node via C2N.
246type c2nRoundTripper struct {

Callers 2

SendC2NMethod · 0.95
TestAddPingRequestFunction · 0.80

Calls 1

addDebugMessageMethod · 0.95

Tested by 1

TestAddPingRequestFunction · 0.64