Documentation
¶
Index ¶
- type Consumer
- type Context
- type DefaultIOWorkerVertex
- type IOGraph
- func (sg *IOGraph[K]) AddIOWorkerVertex(vertices iter.Seq[IOWorkerVertex[K]]) error
- func (sg *IOGraph[K]) AdjancyVertices() (map[string]map[string]IOWorkerVertex[K], error)
- func (sg *IOGraph[K]) DrawGraph(filepath string) error
- func (sg *IOGraph[K]) IterChildlessVertex() iter.Seq[IOWorker[K]]
- func (sg *IOGraph[K]) IterParentlessVertex() iter.Seq[IOWorker[K]]
- func (sg *IOGraph[K]) MergeVertexOutput(vertices iter.Seq[IOWorker[K]]) <-chan K
- func (sg *IOGraph[K]) NeighborVertices(...) (map[string]map[string]IOWorkerVertex[K], error)
- func (sg *IOGraph[K]) PredecessorVertices() (map[string]map[string]IOWorkerVertex[K], error)
- func (sg *IOGraph[K]) Run(ctx context.Context) <-chan error
- type IOGraphOption
- type IOWorker
- type IOWorkerVertex
- type Producer
- type Runner
- type SyncContext
- type WaitGroupContext
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultIOWorkerVertex ¶
func NewDefaultIOWorkerVertex ¶
func NewDefaultIOWorkerVertex[K any](name string, parents []string, decorated IOWorker[K]) *DefaultIOWorkerVertex[K]
func (*DefaultIOWorkerVertex[K]) GetName ¶
func (dwv *DefaultIOWorkerVertex[K]) GetName() string
func (*DefaultIOWorkerVertex[K]) GetParents ¶
func (dwv *DefaultIOWorkerVertex[K]) GetParents() []string
type IOGraph ¶
type IOGraph[K any] struct { graph.Graph[string, IOWorkerVertex[K]] }
func New ¶
func New[K any](opt ...IOGraphOption[K]) *IOGraph[K]
func (*IOGraph[K]) AddIOWorkerVertex ¶
func (sg *IOGraph[K]) AddIOWorkerVertex(vertices iter.Seq[IOWorkerVertex[K]]) error
func (*IOGraph[K]) AdjancyVertices ¶
func (sg *IOGraph[K]) AdjancyVertices() (map[string]map[string]IOWorkerVertex[K], error)
func (*IOGraph[K]) IterChildlessVertex ¶
func (*IOGraph[K]) IterParentlessVertex ¶
func (*IOGraph[K]) MergeVertexOutput ¶
func (*IOGraph[K]) NeighborVertices ¶
func (*IOGraph[K]) PredecessorVertices ¶
func (sg *IOGraph[K]) PredecessorVertices() (map[string]map[string]IOWorkerVertex[K], error)
type IOGraphOption ¶
func WithIOWorkerVertexIterator ¶
func WithIOWorkerVertexIterator[K any](it iter.Seq[IOWorkerVertex[K]]) IOGraphOption[K]
type IOWorker ¶
type IOWorker[K any] interface { Run(ctx SyncContext) <-chan error SetInput(input <-chan K) Output() <-chan K }
func NewIOWorkerFromConsumer ¶
func NewIOWorkerFromProducer ¶
func NewIOWorkerFromRunner ¶
func NewIOWorkerFromWorker ¶
type IOWorkerVertex ¶
type SyncContext ¶
type SyncContext interface {
Context
Initializing()
Synchronize()
}
func NewContext ¶
func NewContext(parent context.Context) SyncContext
type WaitGroupContext ¶
func (*WaitGroupContext) Initialized ¶
func (c *WaitGroupContext) Initialized()
func (*WaitGroupContext) Initializing ¶
func (c *WaitGroupContext) Initializing()
func (*WaitGroupContext) Synchronize ¶
func (c *WaitGroupContext) Synchronize()
Click to show internal directories.
Click to hide internal directories.