plugin

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

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 Info

type Info struct {
	URL     string
	Name    string
	Options map[string]string
}

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

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

Execute executes a remote plugin via gRPC

Jump to

Keyboard shortcuts

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