events

package
v0.0.0-...-93edf92 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: BSD-3-Clause Imports: 4 Imported by: 4

Documentation

Index

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

func UpdateHistory(history *[]models.Track, partyCode string)

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

func UpdateQueue(queue *[]models.Track, partyCode string)

UpdateQueue broadcasts a queue track list update to subscribed clients

Types

This section is empty.

Jump to

Keyboard shortcuts

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