Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewGrpcClient ¶
func NewGrpcClient( impl pluginv1.PluginServiceClient, ) *Client
func (*Client) Import ¶
func (c *Client) Import(fileData []byte) (*messages.ImportFileResponse, error)
func (*Client) ImportLocalFile ¶
func (c *Client) ImportLocalFile(filePath string) (*messages.ImportFileResponse, error)
func (*Client) PluginInfo ¶
func (c *Client) PluginInfo() ( *messages.PluginInfoResponse, error, )
type GrpcPlugin ¶
func NewGrpcPlugin ¶
func NewGrpcPlugin( impl interfaces.LimePipesPlugin, ) *GrpcPlugin
func (*GrpcPlugin) GRPCClient ¶
func (g *GrpcPlugin) GRPCClient( _ context.Context, _ *plugin.GRPCBroker, conn *grpc.ClientConn, ) (any, error)
func (*GrpcPlugin) GRPCServer ¶
func (g *GrpcPlugin) GRPCServer( _ *plugin.GRPCBroker, server *grpc.Server, ) error
type Server ¶
type Server struct {
pluginv1.UnimplementedPluginServiceServer
// contains filtered or unexported fields
}
func NewGrpcServer ¶
func NewGrpcServer( impl interfaces.LimePipesPlugin, ) *Server
func (*Server) ImportFile ¶
func (s *Server) ImportFile( _ context.Context, req *messages.ImportFileRequest, ) (*messages.ImportFileResponse, error)
func (*Server) PluginInfo ¶
func (s *Server) PluginInfo( context.Context, *messages.PluginInfoRequest, ) (*messages.PluginInfoResponse, error)
Click to show internal directories.
Click to hide internal directories.