sse

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSEHandler

type SSEHandler struct{}

SSEHandler handles Server-Sent Events

func NewSSEHandler

func NewSSEHandler() *SSEHandler

NewSSEHandler creates a new SSE handler

func (*SSEHandler) StreamEvents

func (h *SSEHandler) StreamEvents(c *gin.Context)

StreamEvents streams server-sent events to the client @Summary Stream server events @Description Establishes an SSE connection for real-time updates @Tags SSE @Accept json @Produce text/event-stream @Success 200 {string} string "SSE stream established" @Router /api/sse/events [get]

func (*SSEHandler) StreamNotifications

func (h *SSEHandler) StreamNotifications(c *gin.Context)

StreamNotifications streams notification events @Summary Stream notifications @Description Establishes an SSE connection for notifications @Tags SSE @Accept json @Produce text/event-stream @Success 200 {string} string "Notification SSE stream established" @Router /api/sse/notifications [get]

Jump to

Keyboard shortcuts

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