Documentation ¶
Index ¶
- func Join[ResponseType proto.Message](ctx context.Context, c *RPCClient, rpc string, topic []string) (bus.Subscription[ResponseType], error)
- func JoinQueue[ResponseType proto.Message](ctx context.Context, c *RPCClient, rpc string, topic []string) (bus.Subscription[ResponseType], error)
- func OpenStream[SendType, RecvType proto.Message](ctx context.Context, c *RPCClient, rpc string, topic []string, ...) (psrpc.ClientStream[SendType, RecvType], error)
- func RequestMulti[ResponseType proto.Message](ctx context.Context, c *RPCClient, rpc string, topic []string, ...) (rChan <-chan *psrpc.Response[ResponseType], err error)
- func RequestSingle[ResponseType proto.Message](ctx context.Context, c *RPCClient, rpc string, topic []string, ...) (response ResponseType, err error)
- type RPCClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenStream ¶
func RequestMulti ¶
Types ¶
type RPCClient ¶
type RPCClient struct { *info.ServiceDefinition psrpc.ClientOpts // contains filtered or unexported fields }
func NewRPCClient ¶
func NewRPCClient( sd *info.ServiceDefinition, b bus.MessageBus, opts ...psrpc.ClientOption, ) (*RPCClient, error)
func NewRPCClientWithStreams ¶
func NewRPCClientWithStreams( sd *info.ServiceDefinition, b bus.MessageBus, opts ...psrpc.ClientOption, ) (*RPCClient, error)
Click to show internal directories.
Click to hide internal directories.