Skip to content

How to use other plugins in own plugin? #1542

Answered by rustatian
meklis asked this question in Q&A
Discussion options

You must be logged in to vote

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 the KV plugin to include. For the second example you can look at the Logger plugin and the Logger 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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@meklis
Comment options

@rustatian
Comment options

Answer selected by rustatian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
R-question Question
2 participants