How maniartech/conductor works
This is a Go goroutine-orchestration library. The principal workflow is a caller composing a task or nested sequential, concurrent, and conditional orchestration, passing it to Setup, and awaiting a workflow result. Workflow execution invokes the orchestration tree; builders execute tasks or child orchestrations and return results. Configuration, context, error handling, status/progress, and path-based lookup support that runtime. Some internal links are omitted where the excerpts show imports but not calls.
Main entry points: orchestrator.go Public API · orchestration.go Orchestration contracts · base_builder.go Base builder · base_container_orchestration.go Child containers
Components 20
Public API
- Public API
orchestrator.go - Workflow runner
workflow.go
Orchestration builders
- Task builder
pkg/builders/task/builder.go - Sequential builder
pkg/builders/sequential/builder.go - Concurrent builder
pkg/builders/concurrent/concurrent.go - Conditional builder
pkg/builders/conditional/conditional.go
Execution runtime
- Orchestration contracts
pkg/types/orchestration.go - Base builder
internal/orchestration/base_builder.go - Child containers
internal/orchestration/base_container_orchestration.go - Path resolver base
internal/orchestration/path_resolver_base.go - Path resolver
internal/orchestration/path_resolver.go
Runtime support
- Config builder
pkg/config/builder.go - Configuration
pkg/config/config.go - Orchestration context
pkg/context/context_impl.go - Context factory
pkg/context/context_factory.go - Error handling
pkg/errors/boundary.go - Execution results
pkg/result/result.go - Status manager
internal/status/manager.go - Atomic primitives
internal/atomic/atomic.go
Other components
- Library caller
Connections 23
- Library caller → Public API: composes
README.md - Public API → Task builder: constructs
orchestrator.go - Public API → Sequential builder: constructs
README.md - Public API → Concurrent builder: constructs
orchestrator.go - Public API → Conditional builder: constructs
orchestrator.go - Library caller → Workflow runner: sets up
README.md - Workflow runner → Orchestration contracts: executes
workflow.go - Task builder → Orchestration context: creates or uses
pkg/builders/task/builder.go - Concurrent builder → Orchestration contracts: executes children
pkg/builders/concurrent/concurrent.go - Conditional builder → Orchestration contracts: selects branch
- Sequential builder → Orchestration contracts: runs in order
README.md - Public API → Orchestration contracts: exposes contract
orchestrator.go - Base builder → Configuration: uses settings
internal/orchestration/base_builder.go - Base builder → Error handling: uses errors
internal/orchestration/base_builder.go - Base builder → Orchestration contracts: implements contract
internal/orchestration/base_builder.go - Child containers → Base builder: embeds
internal/orchestration/base_container_orchestration.go - Child containers → Execution results: returns query results
- Child containers → Path resolver base: creates resolver
internal/orchestration/base_container_orchestration.go - Path resolver → Path resolver base: uses base
internal/orchestration/path_resolver.go - Config builder → Configuration: builds settings
pkg/config/builder.go - Context factory → Orchestration context: creates context
pkg/context/context_factory.go - Orchestration context → Configuration: stores settings
pkg/context/context_impl.go - Error handling → Execution results: records errors