Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
Execute(ctx context.Context, plugin Info, request *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error)
}
type LocalPluginExecutor ¶
type LocalPluginExecutor struct {
// contains filtered or unexported fields
}
LocalPluginExecutor executes plugins locally via terminal
func NewLocalPluginExecutor ¶
func NewLocalPluginExecutor(console console.Console, logger *slog.Logger) *LocalPluginExecutor
NewLocalPluginExecutor creates a new LocalPluginExecutor
func (*LocalPluginExecutor) Execute ¶
func (e *LocalPluginExecutor) Execute(ctx context.Context, plugin Info, request *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error)
Execute executes a local plugin via terminal
type RemotePluginExecutor ¶
type RemotePluginExecutor struct {
// contains filtered or unexported fields
}
RemotePluginExecutor executes plugins remotely via gRPC
func NewRemotePluginExecutor ¶
func NewRemotePluginExecutor(logger *slog.Logger) *RemotePluginExecutor
NewRemotePluginExecutor creates a new RemotePluginExecutor
func (*RemotePluginExecutor) Execute ¶
func (e *RemotePluginExecutor) Execute(ctx context.Context, plugin Info, request *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error)
Execute executes a remote plugin via gRPC
Click to show internal directories.
Click to hide internal directories.