Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Architectural decision: Generator #42

Open
FMotalleb opened this issue Sep 11, 2024 · 0 comments
Open

Architectural decision: Generator #42

FMotalleb opened this issue Sep 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@FMotalleb
Copy link
Owner

Configuration needs to be validated and built by registering an array of generators.

Generators must have valid criteria to detect the configuration that belongs to them and then try to validate it based on other configurations.

based on the given request abstraction would look like this:

abstract  BaseGenerator {
  CanHandle(map) bool
  Validate(map) bool
}

abstract EventLoopGenerator {
  BaseGenerator
  Generate() EventLoop
}
abstract TaskGenerator {
  BaseGenerator
  Generate() Executable
}
@FMotalleb FMotalleb changed the title Architectural decision Architectural decision: Generator Sep 11, 2024
@FMotalleb FMotalleb self-assigned this Sep 14, 2024
@FMotalleb FMotalleb added the enhancement New feature or request label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant