(ctx context.Context)
| 16 | } |
| 17 | |
| 18 | func (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 | |
| 28 | func (p *PluginSettingClient) Set(ctx context.Context, configs []*gateway.PluginConfig) error { |
| 29 | globalPlugins := make([]*plugin.GlobalPlugin, 0, len(configs)) |
nothing calls this directly
no test coverage detected