Documentation ¶
Index ¶
- func New(opts client.Options) (client.ProtocolClient, error)
- func TransformContext(ctx context.Context) context.Context
- type Client
- func (c *Client) Call(ctx context.Context, addr string, inv *invocation.Invocation, rsp interface{}) error
- func (c *Client) Close() error
- func (c *Client) GetOptions() client.Options
- func (c *Client) ReloadConfigs(opts client.Options)
- func (c *Client) Status(rsp interface{}) (status int, err error)
- func (c *Client) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is grpc client holder
func (*Client) Call ¶
func (c *Client) Call(ctx context.Context, addr string, inv *invocation.Invocation, rsp interface{}) error
Call remote server
func (*Client) GetOptions ¶
GetOptions method return opts
func (*Client) ReloadConfigs ¶
ReloadConfigs reload configs for timeout and tls
Click to show internal directories.
Click to hide internal directories.