func (p *StreamGRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error {
	pluginv2.RegisterStreamServer(s, &streamGRPCServer{
		server: p.StreamServer,
	})
	return nil
}
GRPCServer registers p as a resource gRPC server.
package grpcplugin
import (
	"context"
	"github.com/grafana/grafana-plugin-sdk-go/genproto/pluginv2"
	"github.com/hashicorp/go-plugin"
	"google.golang.org/grpc"
)
type StreamServer interface {
	pluginv2.StreamServer
}
type StreamClient interface {
	pluginv2.StreamClient
}
type StreamGRPCPlugin struct {
	plugin.NetRPCUnsupportedPlugin
	plugin.GRPCPlugin
	StreamServer StreamServer
}