grpc

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 7 Imported by: 0

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, certFile, keyFile, caFile string) (opt grpc.DialOption, err error)

WithTransportCredentials returns a DialOption which configures a connection level security credentials (e.g., TLS/SSL).

func WithTransportCredentialsPEM

func WithTransportCredentialsPEM(serverName string, certPEMBlock, keyPEMBlock, caPEMBlock []byte) (opt grpc.DialOption, err error)

WithTransportCredentialsPEM returns a DialOption which configures a connection level security credentials (e.g., TLS/SSL).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL