Documentation
¶
Index ¶
- type CallOption
- type Client
- func (cli *Client) Call(ctx context.Context, serviceCode int32, method string, ...) error
- func (cli *Client) CallNoReply(ctx context.Context, serviceCode int32, method string, input proto.Message, ...) error
- func (cli *Client) Close()
- func (cli *Client) Subscribe(ctx context.Context, serviceCode int32, messageCode int32, callback any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallOption ¶
CallOption 调用选项
type Client ¶
Client 客户端
func (*Client) Call ¶
func (cli *Client) Call(ctx context.Context, serviceCode int32, method string, input, output proto.Message, options ...CallOption) error
Call 发送请求
Click to show internal directories.
Click to hide internal directories.