| 123456789101112131415161718192021222324 |
- package proxy
- import (
- proto "github.com/grafana/grafana/pkg/tsdb/models"
- "golang.org/x/net/context"
- )
- type GRPCClient struct {
- proto.TsdbPluginClient
- }
- //Query(ctx context.Context, ds *models.DataSource, query *TsdbQuery) (*Response, error)
- func (m *GRPCClient) Query(ctx context.Context, req *proto.TsdbQuery) (*proto.Response, error) {
- return m.TsdbPluginClient.Query(ctx, req)
- }
- type GRPCServer struct {
- TsdbPlugin
- }
- func (m *GRPCServer) Query(ctx context.Context, req *proto.TsdbQuery) (*proto.Response, error) {
- return m.TsdbPlugin.Query(ctx, req)
- }
|