Documentation
¶
Index ¶
- Constants
- func GetInputName(idx int) string
- func GetOutputName(idx int) string
- type Duplicator
- func (duplicator *Duplicator) AttachTo(name string, input *modules.Input) error
- func (duplicator *Duplicator) Close() error
- func (duplicator *Duplicator) Input(name string) (*modules.Input, error)
- func (duplicator *Duplicator) Name() string
- func (duplicator *Duplicator) Output(name string) (*modules.Output, error)
- func (duplicator *Duplicator) Start(ctx context.Context)
Constants ¶
View Source
const ( InputName = "input" OutputName = "output" )
names
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Duplicator ¶
type Duplicator struct {
// contains filtered or unexported fields
}
Duplicator - the structure which is responsible for duplicate signal from one of inputs to all outputs
func NewDuplicator ¶
func NewDuplicator(inputsCount, outputsCount int) *Duplicator
NewDuplicator - constructor of Duplicator structure
func (*Duplicator) AttachTo ¶
func (duplicator *Duplicator) AttachTo(name string, input *modules.Input) error
AttachTo - attach input to output with name
func (*Duplicator) Close ¶
func (duplicator *Duplicator) Close() error
Close - gracefully stops module
func (*Duplicator) Input ¶
func (duplicator *Duplicator) Input(name string) (*modules.Input, error)
Input - returns input by name
func (*Duplicator) Output ¶
func (duplicator *Duplicator) Output(name string) (*modules.Output, error)
Output - returns output by name
func (*Duplicator) Start ¶
func (duplicator *Duplicator) Start(ctx context.Context)
Start - starts module
Click to show internal directories.
Click to hide internal directories.