Files
grafana/pkg/plugins/backend/shared/grpc.go

23 lines
483 B
Go
Raw Normal View History

2017-09-20 13:54:45 +02:00
package shared
import (
2017-09-21 17:02:40 +02:00
proto "github.com/grafana/grafana/pkg/tsdb/models"
2017-09-20 13:54:45 +02:00
"golang.org/x/net/context"
)
type GRPCClient struct {
proto.TsdbPluginClient
}
func (m *GRPCClient) Get(ctx context.Context, req *proto.TsdbRequest) (*proto.TsdbResponse, error) {
return m.TsdbPluginClient.Get(ctx, req)
}
type GRPCServer struct {
TsdbPlugin
}
func (m *GRPCServer) Get(ctx context.Context, req *proto.TsdbRequest) (*proto.TsdbResponse, error) {
return m.TsdbPlugin.Get(ctx, req)
}