-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
(change) Make Notifier interface publicly implementable #214
Comments
Other interfaces like |
@shezadkhan137 Sorry I just see your issue today. And feel free to open a PR for that. @urso thanks for the idea I will look at them. |
I have exposed |
I am really sorry for the delay @shezadkhan137, I have released a v0.20.0 version that allows creating custom Feel free to give me any feedback if it works well for you. |
Wow, thanks so much @thomaspoignant. Will give it a go and let you know :-) |
Thanks! |
Motivation
Make the Notifier interface publicly implementable.
Hi, thanks for making this library! I would like to output feature flag changes to our internal Grafana via the Annotations API.
The current Webhook notifier doesn't satisfy our need, as we would like to format the text for the annotation based on the diff. We could do this via an intermediate web server that translates the Webhook notifier payload for Grafana, but it would be nice to do it without the intermediate server.
Requirements
Ideally, go-feature-flag should allow the notifier interface to be implemented publically and support custom notifiers passed in completely via the Config. Currently is not possible because the GetNotifier interface returns the internal Notifier interface. Also, the Notifier interface accepts an internal model.DiffCache struct.
Would it be possible to make these part of the public API? I think it may be just a matter of taking it out of the internal package and into a public notifier package?
I'm more than willing to put a PR in, if you are okay with making it public. Thanks!
The text was updated successfully, but these errors were encountered: