feat: data source proxy refactoring and route handling, #9078

This commit is contained in:
Torkel Ödegaard
2017-08-22 17:14:15 +02:00
parent 5c2958023d
commit 63d6ab476a
7 changed files with 416 additions and 194 deletions

View File

@ -4,12 +4,12 @@ import "encoding/json"
type DataSourcePlugin struct {
FrontendPluginBase
Annotations bool `json:"annotations"`
Metrics bool `json:"metrics"`
Alerting bool `json:"alerting"`
BuiltIn bool `json:"builtIn"`
Mixed bool `json:"mixed"`
App string `json:"app"`
Annotations bool `json:"annotations"`
Metrics bool `json:"metrics"`
Alerting bool `json:"alerting"`
BuiltIn bool `json:"builtIn"`
Mixed bool `json:"mixed"`
Routes []*AppPluginRoute `json:"routes"`
}
func (p *DataSourcePlugin) Load(decoder *json.Decoder, pluginDir string) error {