mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
23 lines
483 B
Go
23 lines
483 B
Go
package shared
|
|
|
|
import (
|
|
proto "github.com/grafana/grafana/pkg/tsdb/models"
|
|
"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)
|
|
}
|