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.
Click to show internal directories.
Click to hide internal directories.