grpcplugin

package
v1.0.0-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 8 Imported by: 1

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) Export

func (c *Client) Export(
	tunes []*tune.Tune,
) ([]byte, error)

func (*Client) ExportToFile

func (c *Client) ExportToFile(
	tunes []*tune.Tune,
	filepath string,
) error

func (*Client) Parse

func (c *Client) Parse(
	data []byte,
) ([]*messages.ParsedTune, error)

func (*Client) ParseFromFile

func (c *Client) ParseFromFile(
	filePath string,
) ([]*messages.ParsedTune, error)

func (*Client) PluginInfo

func (c *Client) PluginInfo() (
	*messages.PluginInfoResponse,
	error,
)

type GrpcPlugin

type GrpcPlugin struct {
	plugin.Plugin
	// contains filtered or unexported fields
}

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) Export

func (*Server) ExportToFile

func (*Server) Parse

func (*Server) ParseFromFile

func (*Server) PluginInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL