Documentation ¶
Overview ¶
Package chantools was obtained from https://github.com/theepicsnail/goChanTools and subsequently altered for our needs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OneToManyChan ¶
type OneToManyChan struct {
// contains filtered or unexported fields
}
OneToManyChan can broadcase a single channel into many channels.
func NewOneToManyChan ¶
func NewOneToManyChan(srcChan <-chan string) *OneToManyChan
NewOneToManyChan constructs a one-to-many broadcaster
func (*OneToManyChan) AddOutputChan ¶
func (o *OneToManyChan) AddOutputChan(ch chan<- string)
AddOutputChan adds the given channel to the list of channels to broadcast to.
func (*OneToManyChan) RemoveOutputChan ¶
func (o *OneToManyChan) RemoveOutputChan(ch chan<- string)
RemoveOutputChan removes the given channel from the list of channels to broadcast to.
Click to show internal directories.
Click to hide internal directories.