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

More flexible context passing for callbacks and predicates #13

Open
nicholaswold opened this issue Jul 26, 2022 · 0 comments
Open

More flexible context passing for callbacks and predicates #13

nicholaswold opened this issue Jul 26, 2022 · 0 comments

Comments

@nicholaswold
Copy link
Contributor

Right now we have three separate things a callback can be registered to listen for:

  1. Topic
  2. System events
  3. Generic predicate function

The predicate function is wrapped and receives a topic and a message on call, and the wrapper does some basic equality checking for topics and system events. These bits of information do not translate to the callbacks themselves, which are expected to just take contents.

It would be the most helpful if predicates and callbacks can expect a consistent set of keys to be passed to them, that are documented in one place and are opt-in. kopf is a good example of this with their event listeners, but there are others.

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

No branches or pull requests

1 participant