client

package
v1.1.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts opt.Option) *Client

func (*Client) CloseClient added in v1.1.9

func (s *Client) CloseClient()

func (*Client) InvokeRC

func (s *Client) InvokeRC(
	c *context.Context,
	method string,
	req chan []byte,
	opts ...invoke.InvokeOptions,
) chan []byte

InvokeRC rpc request requestChannel,it's multiple request and multiple response

func (*Client) InvokeRR

func (s *Client) InvokeRR(
	c *context.Context,
	method string,
	req, rsp proto.Message,
	opts ...invoke.InvokeOptions,
) error

InvokeRR rpc request requestResponse,it's block request,one request one response

func (*Client) InvokeRS

func (s *Client) InvokeRS(
	c *context.Context,
	method string,
	req proto.Message,
	opts ...invoke.InvokeOptions,
) chan []byte

InvokeRS rpc request requestStream,it's one request and multiple response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL