Skip to content

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

Description

@zyxkad

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

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