streamxclient

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvokeStream

func InvokeStream[Req, Res any](
	ctx context.Context, cli client.Client, smode serviceinfo.StreamingMode, method string,
	req *Req, res *Res, callOptions ...streamxcallopt.CallOption,
) (context.Context, *streamx.GenericClientStream[Req, Res], error)

InvokeStream create a new client stream and wrapped related middlewares

func WithProvider deprecated

func WithProvider(pvd streamx.ClientProvider) internal_client.Option

Deprecated: Note that it maybe refactor in the next version

func WithStreamRecvMiddleware

func WithStreamRecvMiddleware(smw streamx.StreamRecvMiddleware) internal_client.Option

WithStreamRecvMiddleware add recv middleware

func WithStreamRecvTimeout

func WithStreamRecvTimeout(timeout time.Duration) internal_client.Option

WithStreamRecvTimeout add recv timeout for stream.Recv function

func WithStreamSendMiddleware

func WithStreamSendMiddleware(smw streamx.StreamSendMiddleware) internal_client.Option

WithStreamSendMiddleware add send middleware

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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