sse

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Responder

func Responder(ctx context.Context, source <-chan emitter.Event) middleware.ResponderFunc

Responder streams server-sent events (SSE) to a client. It listens for events from the provided channel and dispatches them to the client as soon as they arrive.

Parameters: - ctx: The context for managing the lifecycle of the stream. If canceled, streaming stops. - source: A read-only channel of events to be transmitted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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