MCPcopy
hub / github.com/gotify/server / Save

Method Save

plugin/storagehandler.go:8–15  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

6}
7
8func (c dbStorageHandler) Save(b []byte) error {
9 conf, err := c.db.GetPluginConfByID(c.pluginID)
10 if err != nil {
11 return err
12 }
13 conf.Storage = b
14 return c.db.UpdatePluginConf(conf)
15}
16
17func (c dbStorageHandler) Load() ([]byte, error) {
18 pluginConf, err := c.db.GetPluginConfByID(c.pluginID)

Callers

nothing calls this directly

Calls 2

GetPluginConfByIDMethod · 0.65
UpdatePluginConfMethod · 0.65

Tested by

no test coverage detected