client

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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) Close

func (s *Client) Close()

func (*Client) InvokeRC

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

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,
	chan error,
)

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