remoteProtocolSelector will fetch a list of remote protocols to provide for edge discovery
| 121 | |
| 122 | // remoteProtocolSelector will fetch a list of remote protocols to provide for edge discovery |
| 123 | type remoteProtocolSelector struct { |
| 124 | lock sync.RWMutex |
| 125 | |
| 126 | current Protocol |
| 127 | |
| 128 | // protocolPool is desired protocols in the order of priority they should be picked in. |
| 129 | protocolPool []Protocol |
| 130 | |
| 131 | switchThreshold int32 |
| 132 | fetchFunc edgediscovery.PercentageFetcher |
| 133 | refreshAfter time.Time |
| 134 | ttl time.Duration |
| 135 | log *zerolog.Logger |
| 136 | } |
| 137 | |
| 138 | func newRemoteProtocolSelector( |
| 139 | current Protocol, |
nothing calls this directly
no outgoing calls
no test coverage detected