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

Function NewBuilder

internal/xds/clients/grpctransport/grpc_transport.go:78–84  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

76// the credentials from provided map of credentials names to
77// credentials.Bundle.
78func 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//

Calls

no outgoing calls