package
Version:
v0.0.0-...-9d8b9bc
Opens a new window with list of versions in this module.
Published: Dec 10, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Receiver chan interface{}
Receiver is able to receive broadcast messages
Topic is for broadcasting
Close closes all associated channels in and out
func (t *Topic) Out() chan<- interface{}
Out gives access to the broadcast channel
func (t *Topic) Send(m interface{})
Send broadcasts to all receivers
Sub subscribes a receiver
Source Files
¶
Click to show internal directories.
Click to hide internal directories.