Documentation
¶
Index ¶
Constants ¶
View Source
const ( //DocAddedEvent addded DocAddedEvent = "DocAdded" //DocDeletedEvent deleted DocDeletedEvent = "DocDeleted" //SyncCompleted somplete SyncCompleted = "SyncComplete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentNotification ¶ added in v0.0.5
DocumentNotification notification of something
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub ws notificaiton hub
func (*Hub) Notify ¶
func (h *Hub) Notify(uid, deviceID string, doc DocumentNotification, eventType string)
Notify sends a message to all connected clients
func (*Hub) NotifySync ¶ added in v0.0.5
NotifySync sends a message to all connected clients 1.5
Click to show internal directories.
Click to hide internal directories.