Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { SampleBuilder samples.BuilderConfig GetDefaultElements getDefaultElementsFn GetTogglableElement getTogglableElementFn }
Config for pipeline
type Element ¶ added in v0.4.5
type Element interface { Type() string Write(*samples.Sample) error Attach(Element) error Read() <-chan *samples.Sample Close() }
Element interface
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline constructs a processing graph
+--->element |
pub--->pubCh-->sampleBuilder-->elementCh---+--->element
| +--->element
func NewPipeline ¶
NewPipeline return a new Pipeline
func (*Pipeline) AddElement ¶
func (p *Pipeline) AddElement(einfo proto.ElementInfo)
AddElement add a element to pipeline
func (*Pipeline) GetElement ¶
GetElement get a node by id
Click to show internal directories.
Click to hide internal directories.