Versions in this module Expand all Collapse all v3 v3.1.0 Aug 26, 2026 Changes in this version + var ErrAlreadyEnabledOrDisabled = errors.New("config is already enabled/disabled") + type Database interface + CreateApplication func(application *model.Application) error + CreateMessage func(message *model.Message) error + CreatePluginConf func(p *model.PluginConf) error + GetApplicationByToken func(token string) (*model.Application, error) + GetApplicationsByUser func(userID uint) ([]*model.Application, error) + GetPluginConfByApplicationID func(appid uint) (*model.PluginConf, error) + GetPluginConfByID func(id uint) (*model.PluginConf, error) + GetPluginConfByToken func(token string) (*model.PluginConf, error) + GetPluginConfByUserAndPath func(userid uint, path string) (*model.PluginConf, error) + GetUserByID func(id uint) (*model.User, error) + GetUsers func() ([]*model.User, error) + UpdateApplication func(app *model.Application) error + UpdatePluginConf func(p *model.PluginConf) error + type Manager struct + func NewManager(db Database, directory string, mux *gin.RouterGroup, notifier Notifier) (*Manager, error) + func (m *Manager) HasInstance(pluginID uint) bool + func (m *Manager) InitializeForUserID(userID uint) error + func (m *Manager) Instance(pluginID uint) (compat.PluginInstance, error) + func (m *Manager) LoadPlugin(compatPlugin compat.Plugin) error + func (m *Manager) PluginInfo(modulePath string) compat.Info + func (m *Manager) RemoveUser(userID uint) error + func (m *Manager) SetPluginEnabled(pluginID uint, enabled bool) error + type MessageWithUserID struct + Message model.MessageExternal + UserID uint + type Notifier interface + Notify func(userID uint, message *model.MessageExternal) Other modules containing this package github.com/gotify/server/v2