NewBuilder provides a builder for creating gRPC-based Transports using the credentials from provided map of credentials names to credentials.Bundle.
(configs map[string]Config)
| 76 | // the credentials from provided map of credentials names to |
| 77 | // credentials.Bundle. |
| 78 | func NewBuilder(configs map[string]Config) *Builder { |
| 79 | return &Builder{ |
| 80 | configs: configs, |
| 81 | connections: make(map[clients.ServerIdentifier]*grpc.ClientConn), |
| 82 | refs: make(map[clients.ServerIdentifier]int), |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | // Build returns a gRPC-based clients.Transport. |
| 87 | // |
no outgoing calls