Documentation
¶
Overview ¶
Package forwarder defines the interfaces for data forwarders in different type of vertices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoWhere ¶
type GoWhere func([]string, []string) ([]VertexBuffer, error)
GoWhere is the step decider on where it needs to go
type StarterStopper ¶
type StarterStopper interface {
Start() <-chan struct{}
Stop()
ForceStop()
}
StarterStopper starts/stops the forwarding.
type ToWhichStepDecider ¶
type ToWhichStepDecider interface {
// WhereTo decides where to forward the result to based on the name of the step it returns.
// It supports 2 addition keywords which need not be a step name. They are "ALL" and "DROP"
// where former means, forward to all the neighbouring steps and latter means do not forward anywhere.
WhereTo([]string, []string) ([]VertexBuffer, error)
}
ToWhichStepDecider decides which step to forward after applying the WhereTo function.
type VertexBuffer ¶
VertexBuffer points to the partition of a buffer owned by the vertex.
Click to show internal directories.
Click to hide internal directories.