Documentation
¶
Index ¶
- type GRPCClient
- type GRPCServer
- func (m *GRPCServer) GenerateDependencies(ctx context.Context, req *proto.GenerateDependenciesRequest) (*proto.GenerateDependenciesResponse, error)
- func (m *GRPCServer) GetDescription(ctx context.Context, req *proto.GetDescriptionRequest) (*proto.GetDescriptionResponse, error)
- func (m *GRPCServer) GetName(ctx context.Context, req *proto.GetNameRequest) (*proto.GetNameResponse, error)
- type Interface
- type Plugin
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) GenerateDependencies ¶
func (m *GRPCServer) GenerateDependencies(ctx context.Context, req *proto.GenerateDependenciesRequest) (*proto.GenerateDependenciesResponse, error)
func (*GRPCServer) GetDescription ¶
func (m *GRPCServer) GetDescription(ctx context.Context, req *proto.GetDescriptionRequest) (*proto.GetDescriptionResponse, error)
func (*GRPCServer) GetName ¶
func (m *GRPCServer) GetName(ctx context.Context, req *proto.GetNameRequest) (*proto.GetNameResponse, error)
type Plugin ¶
type Plugin struct {
plugin.NetRPCUnsupportedPlugin
plugin.GRPCPlugin
Impl Interface
}
func (*Plugin) GRPCClient ¶
func (p *Plugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*Plugin) GRPCServer ¶
Click to show internal directories.
Click to hide internal directories.