plugin

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPluginExecutor

func NewPluginExecutor(ctx context.Context, core adapter.Core, logger log.Logger, tag string, _type string, args any) (adapter.PluginExecutor, error)

func NewPluginMatcher

func NewPluginMatcher(ctx context.Context, core adapter.Core, logger log.Logger, tag string, _type string, args any) (adapter.PluginMatcher, error)

func PluginExecutorTypes

func PluginExecutorTypes() []string

func PluginMatcherTypes

func PluginMatcherTypes() []string

func RegisterPluginExecutor

func RegisterPluginExecutor(_type string, factory PluginExecutorFactory)

func RegisterPluginMatcher

func RegisterPluginMatcher(_type string, factory PluginMatcherFactory)

Types

type PluginExecutorFactory

type PluginExecutorFactory func(ctx context.Context, core adapter.Core, logger log.Logger, tag string, args any) (adapter.PluginExecutor, error)

type PluginExecutorOptions

type PluginExecutorOptions struct {
	Tag  string `yaml:"tag"`
	Type string `yaml:"type"`
	Args any    `yaml:"args,omitempty"`
}

type PluginMatcherFactory

type PluginMatcherFactory func(ctx context.Context, core adapter.Core, logger log.Logger, tag string, args any) (adapter.PluginMatcher, error)

type PluginMatcherOptions

type PluginMatcherOptions struct {
	Tag  string `yaml:"tag"`
	Type string `yaml:"type"`
	Args any    `yaml:"args,omitempty"`
}

Jump to

Keyboard shortcuts

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