transformer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCClient

type GRPCClient struct {
	// contains filtered or unexported fields
}

GRPCClient will be used by core to talk over grpc with plugins

func (*GRPCClient) Description

func (m *GRPCClient) Description() (string, error)

func (*GRPCClient) GenerateDependencies

func (m *GRPCClient) GenerateDependencies(request string) ([]string, error)

func (*GRPCClient) Name

func (m *GRPCClient) Name() (string, error)

type GRPCServer

type GRPCServer struct {
	// This is the real implementation
	Impl Interface

	proto.UnimplementedTransformerServer
}

GRPCServer will be used by plugins this is working as proto adapter

func (*GRPCServer) GetDescription

func (*GRPCServer) GetName

type Interface

type Interface interface {
	Name() (string, error)
	Description() (string, error)
	GenerateDependencies(string) ([]string, error)
}

type Plugin

func (*Plugin) GRPCClient

func (p *Plugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*Plugin) GRPCServer

func (p *Plugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

Jump to

Keyboard shortcuts

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