You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Processor is getting bulky as we add more operations to it, this creates a problem for implementing new Processor variants as they have to implement all the methods, even if they are out of scope for that processor.
The Processor should have an array of operations that it supports, each Operation can be implemented independently and then the Processor can be composed by selecting these Operations. An RFC document can be prepared to have more clarity on what needs to be changed to achieve this.
What should be cleaned up or changed
Currently, the
Processor
is getting bulky as we add more operations to it, this creates a problem for implementing newProcessor
variants as they have to implement all the methods, even if they are out of scope for that processor.The Processor should have an array of operations that it supports, each
Operation
can be implemented independently and then the Processor can be composed by selecting these Operations. An RFC document can be prepared to have more clarity on what needs to be changed to achieve this.Provide any links for context
Ref:
darkroom/pkg/processor/interface.go
Lines 5 to 39 in 9186130
The text was updated successfully, but these errors were encountered: