MCPcopy Create free account
hub / github.com/gotify/server / CreatePluginConf

Method CreatePluginConf

database/plugin.go:45–47  ·  view source on GitHub ↗

CreatePluginConf creates a new plugin configuration.

(p *model.PluginConf)

Source from the content-addressed store, hash-verified

43
44// CreatePluginConf creates a new plugin configuration.
45func (d *GormDatabase) CreatePluginConf(p *model.PluginConf) error {
46 return d.DB.Create(p).Error
47}
48
49// GetPluginConfByToken gets plugin configuration by plugin token.
50func (d *GormDatabase) GetPluginConfByToken(token string) (*model.PluginConf, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected