Help us shape the future of Go! Take the 2026 Go Developer Survey

stream

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelableClientStream added in v0.16.0

type CancelableClientStream interface {
	CancelWithErr(err error)
}

CancelableClientStream is implemented by client-side Stream of gRPC in transport layer. It terminates the local stream's lifecycle and cancels the remote peer.

type StreamEventHandler

type StreamEventHandler = func(ctx context.Context, evt stats.Event, err error)

StreamEventHandler is used to handle stream events Deprecated: using HandleStreamRecvEvent/HandleStreamSendEvent in pkg/rpcinfo/ClientStreamEventHandler or pkg/rpcinfo/ServerStreamEventHandler directly

type StreamingConfig

type StreamingConfig struct {
	RecvMiddlewareBuilders []endpoint.RecvMiddlewareBuilder
	RecvMiddlewares        []endpoint.RecvMiddleware

	SendMiddlewareBuilders []endpoint.SendMiddlewareBuilder
	SendMiddlewares        []endpoint.SendMiddleware
}

func (*StreamingConfig) BuildRecvInvokeChain

func (c *StreamingConfig) BuildRecvInvokeChain() endpoint.RecvEndpoint

func (*StreamingConfig) BuildSendInvokeChain

func (c *StreamingConfig) BuildSendInvokeChain() endpoint.SendEndpoint

func (*StreamingConfig) InitMiddlewares

func (c *StreamingConfig) InitMiddlewares(ctx context.Context)

Jump to

Keyboard shortcuts

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