Skip to content
Snippets Groups Projects
Verified Commit 022c0ba6 authored by Jonas Leder's avatar Jonas Leder
Browse files

implement GetMetadata method

parent dd42f5be
Branches
Tags
No related merge requests found
...@@ -4,7 +4,7 @@ go 1.23.4 ...@@ -4,7 +4,7 @@ go 1.23.4
require ( require (
gorm.io/gorm v1.25.12 gorm.io/gorm v1.25.12
jonasled.dev/firehouse-smokedetection/plugin-interface v0.0.4 jonasled.dev/firehouse-smokedetection/plugin-interface v0.0.5
) )
require ( require (
......
...@@ -18,7 +18,7 @@ type GotifyMessage struct { ...@@ -18,7 +18,7 @@ type GotifyMessage struct {
} }
type GotifyPlugin struct { type GotifyPlugin struct {
Metadata plugininterface.PluginMetadata metadata plugininterface.PluginMetadata
db *gorm.DB db *gorm.DB
} }
...@@ -76,8 +76,12 @@ func (g *GotifyPlugin) templateString(smokeSensor plugininterface.AlarmSmokeSens ...@@ -76,8 +76,12 @@ func (g *GotifyPlugin) templateString(smokeSensor plugininterface.AlarmSmokeSens
} }
func (g *GotifyPlugin) GetMetadata() plugininterface.PluginMetadata {
return g.metadata
}
var Plugin = GotifyPlugin{ var Plugin = GotifyPlugin{
Metadata: plugininterface.PluginMetadata{ metadata: plugininterface.PluginMetadata{
Name: "Gotify", Name: "Gotify",
Version: "0.0.1", Version: "0.0.1",
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment