mirror of
https://github.com/grafana/grafana.git
synced 2025-09-29 02:43:56 +08:00
moves plugin proxy to plugin package
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
package proxy
|
package tsdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/golang/protobuf/ptypes"
|
"github.com/golang/protobuf/ptypes"
|
@ -1,4 +1,4 @@
|
|||||||
package proxy
|
package tsdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
proto "github.com/grafana/grafana/pkg/tsdb/models"
|
proto "github.com/grafana/grafana/pkg/tsdb/models"
|
@ -1,4 +1,4 @@
|
|||||||
package proxy
|
package tsdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
@ -14,9 +14,8 @@ import (
|
|||||||
|
|
||||||
"github.com/grafana/grafana/pkg/log"
|
"github.com/grafana/grafana/pkg/log"
|
||||||
"github.com/grafana/grafana/pkg/models"
|
"github.com/grafana/grafana/pkg/models"
|
||||||
"github.com/grafana/grafana/pkg/plugins/backend"
|
shared "github.com/grafana/grafana/pkg/plugins/datasource/tsdb"
|
||||||
"github.com/grafana/grafana/pkg/tsdb"
|
"github.com/grafana/grafana/pkg/tsdb"
|
||||||
shared "github.com/grafana/grafana/pkg/tsdb/models/proxy"
|
|
||||||
plugin "github.com/hashicorp/go-plugin"
|
plugin "github.com/hashicorp/go-plugin"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -89,7 +88,7 @@ func (p *DataSourcePlugin) spawnSubProcess() error {
|
|||||||
Plugins: map[string]plugin.Plugin{p.Id: &shared.TsdbPluginImpl{}},
|
Plugins: map[string]plugin.Plugin{p.Id: &shared.TsdbPluginImpl{}},
|
||||||
Cmd: exec.Command(cmd),
|
Cmd: exec.Command(cmd),
|
||||||
AllowedProtocols: []plugin.Protocol{plugin.ProtocolGRPC},
|
AllowedProtocols: []plugin.Protocol{plugin.ProtocolGRPC},
|
||||||
Logger: backend.LogWrapper{Logger: p.log},
|
Logger: LogWrapper{Logger: p.log},
|
||||||
})
|
})
|
||||||
|
|
||||||
rpcClient, err := p.client.Client()
|
rpcClient, err := p.client.Client()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package backend
|
package plugins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
Reference in New Issue
Block a user