Documentation ¶
Index ¶
- type Data
- type Event
- func (event *Event) Broadcast(channel string, id string, data interface{})
- func (event *Event) GetHub() saas_event.Hub
- func (event *Event) Listen(userId uint, clientId uint) chan sse.Event
- func (event *Event) NewClientId() uint
- func (event *Event) Subscribe(userId uint, clientId uint)
- func (event *Event) Trigger(userId uint, channel string, id string, data interface{})
- func (event *Event) Unsubscribe(userId uint, clientId uint)
- type Hub
- func (hub *Hub) DeleteClient(userId uint, clientId uint)
- func (hub *Hub) GetClient(userId uint, clientId uint) chan sse.Event
- func (hub *Hub) GetList() map[uint]map[uint]chan sse.Event
- func (hub *Hub) GetUser(userId uint) map[uint]chan sse.Event
- func (hub *Hub) Init() saas_event.Hub
- func (hub *Hub) NewClient(userId uint, clientId uint)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
func (*Event) NewClientId ¶
func (*Event) Unsubscribe ¶
type Hub ¶
func (*Hub) DeleteClient ¶
Click to show internal directories.
Click to hide internal directories.