-
Hello! Can you give an example how to access another plugin? |
Beta Was this translation helpful? Give feedback.
Answered by
rustatian
Apr 17, 2023
Replies: 1 comment 2 replies
-
Hey @meklis 👋🏻 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here you are: https://youtu.be/w_uxFhdinvU?t=37😄
Basically, you can include the whole KV plugin, but this will lead to circular dependencies (not sure).
In general, to include other plugins (or your own plugins), you need to declare the interface of that plugin in the plugin you want to use.
In your case this would be a new plugin, let's call it
super_plugin_1
.In the
Init
method you need to use the interface of theKV
plugin to include. For the second example you can look at theLogger
plugin and theLogger
interfaces from the tutorial.But it would be better for you to create your own driver for the
KV
plugin. You can take a look at the memory driver and use it as a base for your own pl…