Movatterモバイル変換


[0]ホーム

URL:


grpc

package
v0.257.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:27Imported by:877

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package grpc supports network connections to GRPC servers.This package is not intended for use by end developers. Use thegoogle.golang.org/api/option package to configure API clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcDial

Dial returns a GRPC connection for use communicating with a Google cloudservice, configured with the given ClientOptions.

funcDialInsecure

func DialInsecure(ctxcontext.Context, opts ...option.ClientOption) (*grpc.ClientConn,error)

DialInsecure returns an insecure GRPC connection for use communicatingwith fake or mock Google cloud service implementations, such as emulators.The connection is configured with the given ClientOptions.

funcWithConnPooladded inv0.17.0

func WithConnPool(pConnPool)option.ClientOption

WithConnPool returns a ClientOption that specifies the ConnPoolconnection to use as the basis of communications.

This is only to be used by Google client libraries internally, for examplewhen creating a longrunning API client that shares the same connection poolas a service client.

Types

typeConnPooladded inv0.16.0

type ConnPool =internal.ConnPool// NOTE(cbro): type alias to export the type. It must live in internal to avoid a circular dependency.

ConnPool is a pool of grpc.ClientConns.

funcDialPooladded inv0.16.0

func DialPool(ctxcontext.Context, opts ...option.ClientOption) (ConnPool,error)

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. Seehttps://github.com/grpc/grpc-go/issues/1287.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp