Files
饺子w (Yumechi) ad977d3d9c feat: EdDSA token for database leakage/index mitigation (#971)
* feat: EdDSA token for database leakage/index mitigation

* [skip ci]: remove token from api output

* fix: e2e tests

* fixup! fix: e2e tests

* doc: document tokens are now optional fields for app and aclient

* fixup(doc): swagger version again

* address review comments

* address review comments
2026-06-28 14:58:20 +00:00

35 lines
709 B
Go

package main
import (
"github.com/gotify/plugin-api"
)
// GetGotifyPluginInfo returns gotify plugin info
func GetGotifyPluginInfo() plugin.Info {
return plugin.Info{
ModulePath: "github.com/gotify/server/v2/plugin/testing/broken/malformedconstructor",
}
}
// Plugin is plugin instance
type Plugin struct{}
// Enable implements plugin.Plugin
func (c *Plugin) Enable() error {
return nil
}
// Disable implements plugin.Plugin
func (c *Plugin) Disable() error {
return nil
}
// NewGotifyPluginInstance creates a plugin instance for a user context.
func NewGotifyPluginInstance(ctx plugin.UserContext) any {
return &Plugin{}
}
func main() {
panic("this is a broken plugin for testing purposes")
}