You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
// ProcessNode represents a node of the pipeline graph. It relates a Processor to its consumers and depth in a graph with respect to a Pipeline. A ProcessNode's referent to its pipeline allows for the synatic sugar of pipeline.Process(...).Consumers(...).
typeProcessNodestruct {
pipeline*Pipeline
procProcessor
consumers []Processor
depthint
}
// Consumers provides read-only access to a pipeline processes consumers.
func (node*ProcessNode) Consumers() []Processor {
returnnode.consumers
}
// Depth provides read-only access to a pipeline process' graph depth.
func (node*ProcessNode) Depth() int {
returnnode.depth
}
// addAsConsumer adds the process node as a consumer to another processor.