mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			373 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			373 B
		
	
	
	
		
			Go
		
	
	
	
package plugins
 | 
						|
 | 
						|
import "encoding/json"
 | 
						|
 | 
						|
type RendererPlugin struct {
 | 
						|
	PluginBase
 | 
						|
 | 
						|
	Executable string `json:"executable,omitempty"`
 | 
						|
}
 | 
						|
 | 
						|
func (r *RendererPlugin) Load(decoder *json.Decoder, pluginDir string) error {
 | 
						|
	if err := decoder.Decode(&r); err != nil {
 | 
						|
		return err
 | 
						|
	}
 | 
						|
 | 
						|
	if err := r.registerPlugin(pluginDir); err != nil {
 | 
						|
		return err
 | 
						|
	}
 | 
						|
 | 
						|
	Renderer = r
 | 
						|
	return nil
 | 
						|
}
 |