streamxclient

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 10 Imported by: 3

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