Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broadcaster ¶
type Broadcaster struct { // private fields: Listenc chan chan (chan broadcast) Sendc chan<- interface{} }
func (Broadcaster) Broadcast ¶
func (b Broadcaster) Broadcast(v interface{})
broadcast a value to all listeners.
func (Broadcaster) Listen ¶
func (b Broadcaster) Listen() Receiver
start listening to the broadcasts.
Click to show internal directories.
Click to hide internal directories.