Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentRenderer ¶
ComponentRenderer is a function that renders a component to HTML
type SSEHandler ¶
type SSEHandler struct {
// contains filtered or unexported fields
}
SSEHandler handles Server-Sent Events connections
func NewSSEHandler ¶
func NewSSEHandler(events events.EventManager, logger *zerolog.Logger) *SSEHandler
NewSSEHandler creates a new SSE handler
func (*SSEHandler) RegisterRenderer ¶
func (h *SSEHandler) RegisterRenderer(eventType string, renderer ComponentRenderer)
RegisterRenderer registers a component renderer for a specific event type
func (*SSEHandler) ServeHTTP ¶
func (h *SSEHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler
Click to show internal directories.
Click to hide internal directories.