Skip to content

More flexible context passing for callbacks and predicates #13

Description

@nicholaswold

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions