dialer

package
v0.0.0-...-82bdfc5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(name string, opts ...DialOption) (*grpc.ClientConn, error)

Dial returns a load balanced grpc client conn with tracing interceptor

Types

type DialOption

type DialOption func(name string) (grpc.DialOption, error)

DialOption allows optional config for dialer

func WithBalancer

func WithBalancer(registry *consul.Client) DialOption

WithBalancer enables client side load balancing

func WithTracer

func WithTracer(tracer opentracing.Tracer) DialOption

WithTracer traces rpc calls

Jump to

Keyboard shortcuts

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