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

Multiple sinks #2

Merged
merged 3 commits into from
Sep 14, 2019
Merged

Multiple sinks #2

merged 3 commits into from
Sep 14, 2019

Conversation

vigith
Copy link
Owner

@vigith vigith commented Sep 14, 2019

To get to multiple sinks, following changes were made

  • move controller to a separate method so we can inject fake client for testing
  • ability to pass context to controller and to sinks
  • moving loading viper configs to a different method
  • support concurrency for UpdateEvents by using channels (fan-out)
  • multi sink (Support for Multiple Sinks vmware-archive/eventrouter#79)
  • added new config format support and is backward compatible
  • add tests for sinks which i modified
  • ran go fmt

* v1 config is where we have a flat structure, this is backward compatible
* v2 is new nested structure

I have also added test cases for the changes I have brought in.

Signed-off-by: Vigith Maurice <vigith@gmail.com>
…or testing

* ability to pass context to controller that can be propagated
* moving loading viper configs to a different method

Signed-off-by: Vigith Maurice <vigith@gmail.com>
* support concurrency for UpdateEvents by using channels (fan-out)
* multi sink approach
* added new config format support and is backward compatible
* add tests for sinks which i changed
* ran go fmt

Signed-off-by: Vigith Maurice <vigith@gmail.com>
@vigith vigith merged commit 6d3fecb into master Sep 14, 2019
@vigith vigith deleted the multipleSinks branch September 14, 2019 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant