MCPcopy
hub / github.com/grpc/grpc-go / remoteBalancer

Struct remoteBalancer

balancer/grpclb/grpclb_test.go:195–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195type remoteBalancer struct {
196 lbgrpc.UnimplementedLoadBalancerServer
197 sls chan *lbpb.ServerList
198 statsDura time.Duration
199 done chan struct{}
200 stats *rpcStats
201 statsChan chan *lbpb.ClientStats
202 fbChan chan struct{}
203 balanceLoadCh chan struct{} // notify successful invocation of BalanceLoad
204
205 wantUserAgent string // expected user-agent in metadata of BalancerLoad
206 wantServerName string // expected server name in InitialLoadBalanceRequest
207}
208
209func newRemoteBalancer(wantUserAgent, wantServerName string, statsChan chan *lbpb.ClientStats) *remoteBalancer {
210 return &remoteBalancer{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected