events

package
v1.2.2-beta Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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 (eh *EventHub) ConnectionAmount() int

func (*EventHub) EmitEvent

func (eh *EventHub) EmitEvent(event any) error

func (*EventHub) EventQueueLength

func (eh *EventHub) EventQueueLength() int

func (*EventHub) FlushEvents

func (eh *EventHub) FlushEvents()

func (*EventHub) NewWebSocketEventHandler

func (eh *EventHub) NewWebSocketEventHandler() func(conn *websocket.Conn)

func (*EventHub) RegisterConnection

func (eh *EventHub) RegisterConnection(ws *websocket.Conn)

func (*EventHub) Run

func (eh *EventHub) Run()

func (*EventHub) Shutdown

func (eh *EventHub) Shutdown()

func (*EventHub) UnregisterConnection

func (eh *EventHub) UnregisterConnection(ws *websocket.Conn)

Jump to

Keyboard shortcuts

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