chantools

package
v2.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 1 Imported by: 1

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.

Jump to

Keyboard shortcuts

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