Ping pings the agent and returns the round-trip time. The bool returns true if the ping was made P2P.
(ctx context.Context)
| 177 | // Ping pings the agent and returns the round-trip time. |
| 178 | // The bool returns true if the ping was made P2P. |
| 179 | func (c *agentConn) Ping(ctx context.Context) (time.Duration, bool, *ipnstate.PingResult, error) { |
| 180 | ctx, span := tracing.StartSpan(ctx) |
| 181 | defer span.End() |
| 182 | |
| 183 | return c.Conn.Ping(ctx, c.agentAddress()) |
| 184 | } |
| 185 | |
| 186 | // Close ends the connection to the workspace agent. |
| 187 | func (c *agentConn) Close() error { |
nothing calls this directly
no test coverage detected