MCPcopy Index your code
hub / github.com/gotify/server / applicationExists

Method applicationExists

plugin/manager.go:106–109  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

104var ErrAlreadyEnabledOrDisabled = errors.New("config is already enabled/disabled")
105
106func (m *Manager) applicationExists(token string) bool {
107 app, _ := m.db.GetApplicationByToken(token)
108 return app != nil
109}
110
111func (m *Manager) pluginConfExists(token string) bool {
112 pluginConf, _ := m.db.GetPluginConfByToken(token)

Callers

nothing calls this directly

Calls 1

GetApplicationByTokenMethod · 0.65

Tested by

no test coverage detected