Documentation ¶
Index ¶
- func NotifyPlaylistSubscribers(fromUser uint, playlist_id uint, message string)
- func PlaylistDeleted(playlist_id uint, author_id uint) string
- func PlaylistNeedRefresh(playlist_id uint, author_id uint) string
- type WSPool
- func (wsPool *WSPool) AddSocket(socket *WebSocket)
- func (wsPool *WSPool) BroadcastMessage(authorId uint, playlistId uint, message string)
- func (wsPool *WSPool) CreateWebSocket(w http.ResponseWriter, r *http.Request) *WebSocket
- func (wsPool *WSPool) GetSocket(client uint) *WebSocket
- func (wsPool *WSPool) RemoveSocket(socket *WebSocket)
- type WebSocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlaylistDeleted ¶
func PlaylistNeedRefresh ¶
Types ¶
type WSPool ¶
type WSPool struct {
// contains filtered or unexported fields
}
func (*WSPool) BroadcastMessage ¶
func (*WSPool) CreateWebSocket ¶
func (*WSPool) RemoveSocket ¶
Click to show internal directories.
Click to hide internal directories.