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
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:
go-pluginnot support load plugin from memory, so I must extract the wasm file to somewhere before I can load it