| 20 | ) |
| 21 | |
| 22 | type candidateBase struct { |
| 23 | id string |
| 24 | networkType NetworkType |
| 25 | candidateType CandidateType |
| 26 | |
| 27 | component uint16 |
| 28 | address string |
| 29 | port int |
| 30 | relatedAddress *CandidateRelatedAddress |
| 31 | tcpType TCPType |
| 32 | |
| 33 | resolvedAddr net.Addr |
| 34 | |
| 35 | lastSent atomic.Int64 |
| 36 | lastReceived atomic.Int64 |
| 37 | conn net.PacketConn |
| 38 | |
| 39 | currAgent *Agent |
| 40 | closeCh chan struct{} |
| 41 | closedCh chan struct{} |
| 42 | |
| 43 | foundationOverride string |
| 44 | priorityOverride uint32 |
| 45 | |
| 46 | relayLocalPreference uint16 |
| 47 | |
| 48 | remoteCandidateCaches sync.Map // map[AddrPort]Candidate |
| 49 | isLocationTracked bool |
| 50 | extensions []CandidateExtension |
| 51 | } |
| 52 | |
| 53 | // Save a time reference to calculate monotonic time for candidate last sent/received. |
| 54 | // nolint: gochecknoglobals |
nothing calls this directly
no outgoing calls
no test coverage detected