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
Click to show internal directories.
Click to hide internal directories.