Skip to content

Conversation

@mostafa
Copy link
Member

@mostafa mostafa commented Jan 14, 2023

I added a new OnHook in this PR that helps introduce custom hooks that can be registered in different places. The hook is the same, but the HookName and what's inside the args determine how it should be processed. The plugins should register the onHook hook and decide on the data they receive. This also enables multiple plugins to register to a custom onHook and pass args to each other based on their priority. This way the HookName needn't match the plugin's Method, i.e. OnHook. Actual implementation of this hook will happen over time.

Closes #107.

@mostafa mostafa merged commit eaaf8c7 into main Jan 14, 2023
@mostafa mostafa deleted the register-custom-hooks-when-initializing-components branch January 14, 2023 01:11
@mostafa mostafa changed the title Register custom hooks when initializing components Make hooks more generic with generic gRPC methods Jan 14, 2023
@mostafa mostafa mentioned this pull request Jan 14, 2023
5 tasks
mostafa added a commit that referenced this pull request Jan 29, 2023
…nitializing-components

Register custom hooks when initializing components
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.

Make hooks more generic with generic gRPC methods

2 participants