grpc

package
v0.0.0-...-8da02c2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{

	Host:    "dns:///localhost:8443",
	Timeout: defaultTimeout,
}

Functions

func NewGrpcConnection

func NewGrpcConnection(cfg Config, cred credentials.TransportCredentials) (*grpc.ClientConn, error)

NewGrpcConnection dials a new traced and metered connection for gRPC client with round robin client-side LB.

Types

type Config

type Config struct {
	Host    string
	Timeout time.Duration
}

Config is the gRPC client configuration.

Jump to

Keyboard shortcuts

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