CandidateHostConfig is the config required to create a new CandidateHost.
| 17 | |
| 18 | // CandidateHostConfig is the config required to create a new CandidateHost. |
| 19 | type CandidateHostConfig struct { |
| 20 | CandidateID string |
| 21 | Network string |
| 22 | Address string |
| 23 | Port int |
| 24 | Component uint16 |
| 25 | Priority uint32 |
| 26 | Foundation string |
| 27 | TCPType TCPType |
| 28 | IsLocationTracked bool |
| 29 | } |
| 30 | |
| 31 | // NewCandidateHost creates a new host candidate. |
| 32 | func NewCandidateHost(config *CandidateHostConfig) (*CandidateHost, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected