Documentation
¶
Index ¶
- type EventHub
- func (eh *EventHub) ConnectionAmount() int
- func (eh *EventHub) EmitEvent(event any) error
- func (eh *EventHub) EventQueueLength() int
- func (eh *EventHub) FlushEvents()
- func (eh *EventHub) NewWebSocketEventHandler() func(conn *websocket.Conn)
- func (eh *EventHub) RegisterConnection(ws *websocket.Conn)
- func (eh *EventHub) Run()
- func (eh *EventHub) Shutdown()
- func (eh *EventHub) UnregisterConnection(ws *websocket.Conn)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHub ¶
type EventHub struct {
// contains filtered or unexported fields
}
func NewEventHub ¶
func NewEventHub() *EventHub
func (*EventHub) ConnectionAmount ¶
func (*EventHub) EventQueueLength ¶
func (*EventHub) FlushEvents ¶
func (eh *EventHub) FlushEvents()
func (*EventHub) NewWebSocketEventHandler ¶
func (*EventHub) RegisterConnection ¶
func (*EventHub) UnregisterConnection ¶
Click to show internal directories.
Click to hide internal directories.