Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { *grpc.ClientConn // contains filtered or unexported fields }
Conn is the framework's client side instance, it contains the ctx, opt and interceptors. Create an instance of Client, by using NewClient().
func Dial ¶
func Dial(target string, opts ...grpc.DialOption) (c *Conn, err error)
Dial create a grpc client conn It will return immediately without any blocking
func DialWithBlock ¶
func DialWithBlock(ctx context.Context, target string, opts ...grpc.DialOption) (c *Conn, err error)
DialWithBlock create a grpc client conn with context It will block until create connection successfully 核心依赖建议使用DialWithBlock,确保能够拉到服务提供者节点再进行后续的启动操作
Click to show internal directories.
Click to hide internal directories.