(visitorFn func(context.Context, string) error)
| 54 | } |
| 55 | |
| 56 | func upDirectionTraversal(visitorFn func(context.Context, string) error) *graphTraversal { |
| 57 | return &graphTraversal{ |
| 58 | extremityNodesFn: (*Graph).Leaves, |
| 59 | adjacentNodesFn: (*Vertex).GetParents, |
| 60 | filterAdjacentByStatusFn: (*Graph).FilterChildren, |
| 61 | adjacentServiceStatusToSkip: ServiceStopped, |
| 62 | targetServiceStatus: ServiceStarted, |
| 63 | visitorFn: visitorFn, |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func downDirectionTraversal(visitorFn func(context.Context, string) error) *graphTraversal { |
| 68 | return &graphTraversal{ |