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

How can I get the plugin id before plugin loaded #55

Open
zyxkad opened this issue Jul 28, 2023 · 0 comments
Open

How can I get the plugin id before plugin loaded #55

zyxkad opened this issue Jul 28, 2023 · 0 comments

Comments

@zyxkad
Copy link

zyxkad commented Jul 28, 2023

Is it possible to get plugin id before a plugin is loaded?
I have to ensure the plugin that have the same id (but maybe different version) only exists one instance in the memory.

There are two alternative solutions:

  • I can define a method, and call the method to get plugin's id, but it's not a good design.
  • I can packed the metadata as json with the wasm file into a zip, and read the metadata file before load the plugin. However, go-plugin not support load plugin from memory, so I must extract the wasm file to somewhere before I can load it
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