Documentation
¶
Index ¶
- func DeleteBroadcast(channel string)
- func Event(channel string) broadcast.Broadcaster
- func Listen(channel string) chan interface{}
- func StopListening(channel string, listener chan interface{})
- func UpdateHistory(history *[]models.Track, partyCode string)
- func UpdateParty(party models.PublicParty)
- func UpdateQueue(queue *[]models.Track, partyCode string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBroadcast ¶
func DeleteBroadcast(channel string)
DeleteBroadcast deletes a broadcast channel
func Event ¶
func Event(channel string) broadcast.Broadcaster
Event gets an event Broadcaster to submit events to
func Listen ¶
func Listen(channel string) chan interface{}
Listen to a broadcast channel for messages
func StopListening ¶
func StopListening(channel string, listener chan interface{})
StopListening to a broadcast channel
func UpdateHistory ¶
UpdateHistory broadcasts a history track list update to subscribed clients
func UpdateParty ¶
func UpdateParty(party models.PublicParty)
UpdateParty broadcasts a party update to subscribed clients
func UpdateQueue ¶
UpdateQueue broadcasts a queue track list update to subscribed clients
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.