Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the HTTP API gateway server.
func (*Server) GetWebSocketHub ¶
func (s *Server) GetWebSocketHub() *WebSocketHub
GetWebSocketHub returns the WebSocket hub for broadcasting updates.
type WebSocketHub ¶
type WebSocketHub struct {
// contains filtered or unexported fields
}
WebSocketHub manages WebSocket connections for live updates.
func NewWebSocketHub ¶
func NewWebSocketHub(logger *pkg.Logger) *WebSocketHub
NewWebSocketHub creates a new WebSocket hub.
func (*WebSocketHub) BroadcastRingUpdate ¶
func (h *WebSocketHub) BroadcastRingUpdate(update interface{}) error
BroadcastRingUpdate sends a ring update to all connected clients.
func (*WebSocketHub) HandleWebSocket ¶
func (h *WebSocketHub) HandleWebSocket(w http.ResponseWriter, r *http.Request)
HandleWebSocket handles WebSocket connections.
func (*WebSocketHub) Stop ¶
func (h *WebSocketHub) Stop()
Stop gracefully shuts down the WebSocket hub.
Click to show internal directories.
Click to hide internal directories.