String makes the candidateBase printable.
()
| 495 | |
| 496 | // String makes the candidateBase printable. |
| 497 | func (c *candidateBase) String() string { |
| 498 | return fmt.Sprintf( |
| 499 | "%s %s %s%s (resolved: %v)", |
| 500 | c.NetworkType(), |
| 501 | c.Type(), |
| 502 | net.JoinHostPort(c.Address(), strconv.Itoa(c.Port())), |
| 503 | c.relatedAddress, |
| 504 | c.resolvedAddr, |
| 505 | ) |
| 506 | } |
| 507 | |
| 508 | // LastReceived returns a time.Time indicating the last time |
| 509 | // this candidate was received. |
nothing calls this directly
no test coverage detected