First draft of backend independent plugins

This commit is contained in:
Jonas Dellinger
2022-06-16 18:33:43 +02:00
parent a95bf94d87
commit 0a12fe6102
9 changed files with 297 additions and 130 deletions
+15
View File
@@ -0,0 +1,15 @@
class PassivePlugin:
def __init__(self, logger) -> None:
self.logger
pass
def call_method(self, method_name, args):
self.logger.debug(f"Tried to call method {method_name}, but plugin is in passive mode")
pass
def execute_method(self, method_name, method_args):
self.logger.debug(f"Tried to execute method {method_name}, but plugin is in passive mode")
pass
async def start(self):
pass# Empty stub