mirror of
https://github.com/grafana/grafana.git
synced 2025-09-26 13:14:32 +08:00
Backend Plugins: Refactor backend plugin registration and start (#21452)
Moves the details of loading plugins into the backend plugin manager from the respective plugin (datasource, transform and renderer).
This commit is contained in:

committed by
GitHub

parent
8505d90768
commit
bb849d53bf
@ -8,7 +8,7 @@ type PanelPlugin struct {
|
||||
}
|
||||
|
||||
func (p *PanelPlugin) Load(decoder *json.Decoder, pluginDir string) error {
|
||||
if err := decoder.Decode(&p); err != nil {
|
||||
if err := decoder.Decode(p); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user