dialer

package
v0.0.0-...-9a8bd01 Latest Latest
Warning

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

Go to latest
Published: May 5, 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