Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial(addr string, opts ...DialOption) (*grpc.ClientConn, error)
Dial returns a load balanced grpc client conn with tracing interceptor
Types ¶
type ClientConn ¶
type DialOption ¶
type DialOption func(name string) (grpc.DialOption, error)
DialOption allows optional config for dialer
type Dialer ¶
type Dialer struct {
ServiceName string
Address string
Conn *grpc.ClientConn
Logger *zap.SugaredLogger
}
func NewDialer ¶
func NewDialer(ctx context.Context, lg *zap.SugaredLogger, name, addr string, opts ...DialOption) (*Dialer, error)
func (*Dialer) GracefulShutdown ¶
func (*Dialer) WithCancel ¶
Click to show internal directories.
Click to hide internal directories.