Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial(ctx context.Context, opts ...options.ClientOption) (*grpc.ClientConn, error)
Dial returns a GRPC connection for use communicating with a GRPC service, configured with the given ClientOptions.
func DialInsecure ¶
func DialInsecure(ctx context.Context, opts ...options.ClientOption) (*grpc.ClientConn, error)
DialInsecure returns an insecure GRPC connection for use communicating with insecure GRPC service
Types ¶
type ConnPool ¶
ConnPool is a pool of grpc.ClientConns.
func DialPool ¶
DialPool returns a pool of GRPC connections for the given service. This differs from the connection pooling implementation used by Dial, which uses a custom GRPC load balancer. DialPool should be used instead of Dial when a pool is used by default or a different custom GRPC load balancer is needed. The context and options are shared between each Conn in the pool. The pool size is configured using the WithGRPCConnectionPool option.
This API is subject to change as we further refine requirements. It will go away if gRPC stubs accept an interface instead of the concrete ClientConn type. See https://github.com/grpc/grpc-go/issues/1287.