Skip to content

Commit

Permalink
feature: structs and interface
Browse files Browse the repository at this point in the history
  • Loading branch information
NecrossIT committed Jun 9, 2023
1 parent 1a5b405 commit a38ee99
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
File renamed without changes.
19 changes: 19 additions & 0 deletions plugin.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit a38ee99

Please sign in to comment.