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

[FR] Global hooks #200

Open
blueset opened this issue Apr 11, 2020 · 0 comments
Open

[FR] Global hooks #200

blueset opened this issue Apr 11, 2020 · 0 comments

Comments

@blueset
Copy link
Member

blueset commented Apr 11, 2020

Is your feature request related to a problem? Please describe.
Currently there are some needs on modifying the behavior of channels that is not a part of message delivery between them. The current method of doing this kind of stuff is to monkey patch the channel which can lead to compatibility problems.

Some modules/feature requests related:

Describe the solution you'd like
Design a global hook registration/execution mechanism at the framework (cf. WordPress). Modules (esp. channels) register hook points to the coordinator, and other modules (esp. middlewares) can hook on to the points and modify the outcome value before proceeding.

Additional burden could be added on to module authors to document the hooks. Decision of where to put the hooks could also be difficult.

Describe alternatives you've considered
None by far.

Additional context
N/A.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant