[Feature]: Introduce factory method CreateDependencyWriter
for backend storage
#6498
Labels
area/storage
changelog:new-feature
Change that should be called out as new feature in CHANGELOG
enhancement
storage/cassandra
storage/elasticsearch
Requirement
Introduce factory method
CreateDependencyWriter
for backend storageProblem
Based on the discussion in this GitHub pull request, I believe that instead of using type assertion to create
StorageIntegration.DependencyWriter
throughdependencystore.Writer
, a more effective approach would be to introduce aCreateDependencyWriter()
function.Proposal
Introduce
CreateDependencyWriter
instorage/factory.go
of the BaseFactory.storage factory Implement this function(just ES & Cassandra now, the others ignore).
3.Add unit tests.
Open questions
No response
The text was updated successfully, but these errors were encountered: