Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WebsocketLogger = logrus.New().WithField("scope", "websocket")
Functions ¶
This section is empty.
Types ¶
type NotificationConnection ¶
type NotificationManager ¶
type NotificationManager struct {
Conns map[string]*NotificationConnection
sync.Mutex
}
func NewNotificationManager ¶
func NewNotificationManager() *NotificationManager
func (*NotificationManager) SendJSONToAll ¶
func (m *NotificationManager) SendJSONToAll(data interface{})
func (*NotificationManager) SendJSONToUser ¶
func (m *NotificationManager) SendJSONToUser(data interface{}, username string)
type NotificationModule ¶
type NotificationModule struct {
NotificationSocketHandler haruka.RequestHandler
Manager *NotificationManager
}
func (*NotificationModule) InitModule ¶
func (m *NotificationModule) InitModule() error
Click to show internal directories.
Click to hide internal directories.