Documentation
¶
Overview ¶
Package example provides example plugin implementations for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelloPlugin ¶
type HelloPlugin struct {
// contains filtered or unexported fields
}
HelloPlugin is a simple example plugin that demonstrates the plugin interface. This is a native Go implementation for testing - real plugins would be WASM or gRPC.
func NewHelloPlugin ¶
func NewHelloPlugin() *HelloPlugin
NewHelloPlugin creates a new hello plugin instance.
func (*HelloPlugin) Call ¶
func (p *HelloPlugin) Call(ctx context.Context, fn string, args json.RawMessage) (json.RawMessage, error)
Call implements plugin.Plugin.
func (*HelloPlugin) GKRegister ¶
func (p *HelloPlugin) GKRegister() plugin.GKRegistration
Manifest implements plugin.Plugin.
Click to show internal directories.
Click to hide internal directories.