From a38ee9975f071be7b1354b834e9a21273fdc4d98 Mon Sep 17 00:00:00 2001 From: NecrossIT <2foralp@googlemail.com> Date: Fri, 9 Jun 2023 18:00:41 +0200 Subject: [PATCH] feature: structs and interface --- interface.go => listener.go | 0 plugin.go | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) rename interface.go => listener.go (100%) create mode 100644 plugin.go diff --git a/interface.go b/listener.go similarity index 100% rename from interface.go rename to listener.go diff --git a/plugin.go b/plugin.go new file mode 100644 index 0000000..d60d96a --- /dev/null +++ b/plugin.go @@ -0,0 +1,19 @@ +package Hosting_System_Plugin_Library + +type Plugin struct { + Name string + Listeners []Listener + Version string + Author string +} + +type PluginLoader struct { + Plugins map[string]Plugin +} + +type PluginInterface interface { + GetName() string + GetVersion() string + GetAuthor() string + RegisterListeners() []Listener +}