(proto *tailnetproto.TelemetryEvent_P2PEndpoint)
| 1894 | } |
| 1895 | |
| 1896 | func p2pEndpointFromProto(proto *tailnetproto.TelemetryEvent_P2PEndpoint) NetworkEventP2PEndpoint { |
| 1897 | if proto == nil { |
| 1898 | return NetworkEventP2PEndpoint{} |
| 1899 | } |
| 1900 | return NetworkEventP2PEndpoint{ |
| 1901 | Hash: proto.Hash, |
| 1902 | Port: int(proto.Port), |
| 1903 | Fields: ipFieldsFromProto(proto.Fields), |
| 1904 | } |
| 1905 | } |
| 1906 | |
| 1907 | type DERPMapHomeParams struct { |
| 1908 | RegionScore map[int64]float64 `json:"region_score"` |
no test coverage detected