MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Init

Method Init

gateway/apinto/plugin.go:18–26  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

16}
17
18func (p *PluginSettingClient) Init(ctx context.Context) error {
19 //data, err := json.Marshal(map[string]interface{}{
20 // "plugins": plugin.GetGlobalPluginConf(),
21 //})
22 //log.Println(string(data), err)
23 return p.client.SSet(ctx, "plugin", map[string]interface{}{
24 "plugins": plugin.GetGlobalPluginConf(),
25 })
26}
27
28func (p *PluginSettingClient) Set(ctx context.Context, configs []*gateway.PluginConfig) error {
29 globalPlugins := make([]*plugin.GlobalPlugin, 0, len(configs))

Callers

nothing calls this directly

Calls 1

GetGlobalPluginConfFunction · 0.92

Tested by

no test coverage detected