stream

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamEventHandler

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

StreamEventHandler is used to handle stream events

type StreamingConfig

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

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

	EventHandler StreamEventHandler
}

func (*StreamingConfig) BuildRecvInvokeChain

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

func (*StreamingConfig) BuildSendInvokeChain

func (c *StreamingConfig) BuildSendInvokeChain(ep endpoint.SendEndpoint) 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