Documentation ¶
Overview ¶
Package grpc wraps "google.golang.org/grpc"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailOnNonTempDialError ¶
func FailOnNonTempDialError(f bool) grpc.DialOption
FailOnNonTempDialError returns a DialOption that specifies if gRPC fails on non-temporary dial errors. If f is true, and dialer returns a non-temporary error, gRPC will fail the connection to the network address and won't try to reconnect. The default value of FailOnNonTempDialError is false.
This is an EXPERIMENTAL API.
func WithBlock ¶
func WithBlock() grpc.DialOption
WithBlock returns a DialOption which makes caller of Dial blocks until the underlying connection is up. Without this, Dial returns immediately and connecting the server happens in background.
func WithTransportCredentials ¶
func WithTransportCredentials(serverName, clientCert, clientKey, caCert string) (opt grpc.DialOption, err error)
WithTransportCredentials returns a DialOption which configures a connection level security credentials (e.g., TLS/SSL).
Types ¶
This section is empty.