Versions in this module Expand all Collapse all v3 v3.1.0 Aug 26, 2026 Changes in this version + const Configurer + const Displayer + const Messenger + const Storager + const Webhooker + func HasSupport(p PluginInstance, toCheck Capability) bool + type Capabilities []Capability + func (m Capabilities) Strings() []string + type Capability string + type Info struct + Author string + Description string + License string + ModulePath string + Name string + Version string + Website string + func (c Info) String() string + type Message struct + Extras map[string]any + Message string + Priority int + Title string + type MessageHandler interface + SendMessage func(msg Message) error + type Plugin interface + APIVersion func() string + NewPluginInstance func(ctx UserContext) PluginInstance + PluginInfo func() Info + func Wrap(p *plugin.Plugin) (Plugin, error) + type PluginInstance interface + DefaultConfig func() any + Disable func() error + Enable func() error + GetDisplay func(location *url.URL) string + RegisterWebhook func(basePath string, mux *gin.RouterGroup) + SetMessageHandler func(h MessageHandler) + SetStorageHandler func(handler StorageHandler) + Supports func() Capabilities + ValidateAndSetConfig func(c any) error + type PluginV1 struct + Constructor func(ctx papiv1.UserContext) papiv1.Plugin + Info papiv1.Info + func (c PluginV1) APIVersion() string + func (c PluginV1) NewPluginInstance(ctx UserContext) PluginInstance + func (c PluginV1) PluginInfo() Info + type PluginV1Instance struct + func (c *PluginV1Instance) DefaultConfig() any + func (c *PluginV1Instance) Disable() error + func (c *PluginV1Instance) Enable() error + func (c *PluginV1Instance) GetDisplay(location *url.URL) string + func (c *PluginV1Instance) RegisterWebhook(basePath string, mux *gin.RouterGroup) + func (c *PluginV1Instance) SetMessageHandler(h MessageHandler) + func (c *PluginV1Instance) SetStorageHandler(handler StorageHandler) + func (c *PluginV1Instance) Supports() Capabilities + func (c *PluginV1Instance) ValidateAndSetConfig(config any) error + type PluginV1MessageHandler struct + WrapperHandler MessageHandler + func (c *PluginV1MessageHandler) SendMessage(msg papiv1.Message) error + type PluginV1StorageHandler struct + WrapperHandler StorageHandler + func (c *PluginV1StorageHandler) Load() ([]byte, error) + func (c *PluginV1StorageHandler) Save(b []byte) error + type StorageHandler interface + Load func() ([]byte, error) + Save func(b []byte) error + type UserContext struct + Admin bool + ID uint + Name string Other modules containing this package github.com/gotify/server/v2