newLBBuilderWithFallbackTimeout creates a grpclb builder with the given fallbackTimeout. If no response is received from the remote balancer within fallbackTimeout, the backend addresses from the resolved address list will be used. Only call this function when a non-default fallback timeout is need
(fallbackTimeout time.Duration)
| 119 | // |
| 120 | // Only call this function when a non-default fallback timeout is needed. |
| 121 | func newLBBuilderWithFallbackTimeout(fallbackTimeout time.Duration) balancer.Builder { |
| 122 | return &lbBuilder{ |
| 123 | fallbackTimeout: fallbackTimeout, |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | type lbBuilder struct { |
| 128 | fallbackTimeout time.Duration |
no outgoing calls