streamxserver

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: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvokeBidiStreamHandler

func InvokeBidiStreamHandler[Req, Res any](
	ctx context.Context,
	reqArgs streamx.StreamReqArgs, resArgs streamx.StreamResArgs,
	methodHandler streamx.BidiStreamingHandler[Req, Res],
) (err error)

func InvokeClientStreamHandler

func InvokeClientStreamHandler[Req, Res any](
	ctx context.Context,
	reqArgs streamx.StreamReqArgs, resArgs streamx.StreamResArgs,
	methodHandler streamx.ClientStreamingHandler[Req, Res],
) (err error)

func InvokeServerStreamHandler

func InvokeServerStreamHandler[Req, Res any](
	ctx context.Context,
	reqArgs streamx.StreamReqArgs, resArgs streamx.StreamResArgs,
	methodHandler streamx.ServerStreamingHandler[Req, Res],
) (err error)

func InvokeUnaryHandler

func InvokeUnaryHandler[Req, Res any](
	ctx context.Context,
	reqArgs streamx.StreamReqArgs, resArgs streamx.StreamResArgs,
	methodHandler streamx.UnaryHandler[Req, Res],
) error

func WithProvider deprecated

func WithProvider(provider streamx.ServerProvider) server.Option

Deprecated: Note that it maybe refactor in the next version

func WithStreamRecvMiddleware

func WithStreamRecvMiddleware(mw streamx.StreamRecvMiddleware) server.Option

WithStreamRecvMiddleware add recv middleware

func WithStreamSendMiddleware

func WithStreamSendMiddleware(mw streamx.StreamSendMiddleware) server.Option

WithStreamSendMiddleware add send middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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