Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExamplePlugin ¶
type ExamplePlugin struct { }
ExamplePlugin is an example implementation of the Plugin interface.
func (*ExamplePlugin) Handle ¶
func (p *ExamplePlugin) Handle(ctx context.Context, msg *apiv1.HostMessage)
func (*ExamplePlugin) Name ¶
func (p *ExamplePlugin) Name() string
type Plugin ¶
type Plugin interface { Name() string Handle(ctx context.Context, msg *apiv1.HostMessage) }
Plugin is the interface that all plugins must implement.
type WGPlugin ¶
type WGPlugin struct {
// contains filtered or unexported fields
}
WGPlugin is a plugin that executes a shell command when a message is received.
func NewWGPlugin ¶
NewWGPlugin creates a new WGPlugin.
Click to show internal directories.
Click to hide internal directories.