Documentation
¶
Index ¶
- func CollectInDependencyOrder[T any](ctx context.Context, project *types.Project, ...) (map[string]T, error)
- func InDependencyOrder(ctx context.Context, project *types.Project, fn VisitorFn[types.ServiceConfig], ...) error
- func InReverseOrder(o *Options)
- func WithMaxConcurrency(max int) func(*Options)
- func WithRootNodesAndDown(nodes []string) func(*Options)
- type CollectorFn
- type Options
- type VisitorFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectInDependencyOrder ¶
func CollectInDependencyOrder[T any](ctx context.Context, project *types.Project, fn CollectorFn[types.ServiceConfig, T], options ...func(*Options)) (map[string]T, error)
CollectInDependencyOrder walk the service graph an invoke CollectorFn in respect to dependency order, then return result for each call
func InDependencyOrder ¶
func InDependencyOrder(ctx context.Context, project *types.Project, fn VisitorFn[types.ServiceConfig], options ...func(*Options)) error
InDependencyOrder walk the service graph an invoke VisitorFn in respect to dependency order
func InReverseOrder ¶
func InReverseOrder(o *Options)
InReverseOrder configure traversal to walk the graph in reverse dependency order
func WithMaxConcurrency ¶
WithMaxConcurrency configure traversal to limit concurrency walking graph nodes
func WithRootNodesAndDown ¶
WithRootNodesAndDown creates a graphTraversal to start from selected nodes
Types ¶
type CollectorFn ¶
CollectorFn executes on each graph vertex based on visit order and return associated value
Click to show internal directories.
Click to hide internal directories.