saas_event

package
v0.0.0-...-67e3d2d Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	NewClientId() uint
	GetHub() Hub
	Subscribe(userId uint, clientId uint)
	Unsubscribe(userId uint, clientId uint)
	Trigger(userId uint, channel string, id string, data interface{})
	Broadcast(channel string, id string, data interface{})
	Listen(userId uint, clientId uint) chan sse.Event
}

type Hub

type Hub interface {
	Init() Hub
	GetList() map[uint]map[uint]chan sse.Event
	GetUser(userId uint) map[uint]chan sse.Event
	GetClient(userId uint, clientId uint) chan sse.Event
	NewClient(userId uint, clientId uint)
	DeleteClient(userId uint, clientId uint)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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