plugin

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// the path to the plugin executable
	Path   string
	Config map[string]interface{}
	template.Backend
}

Plugin represents the config for a plugin.

func (*Plugin) Connect

func (p *Plugin) Connect() (template.Backend, error)

Connect creates the connection to the plugin and initializes it with the stored configuration.

func (*Plugin) GetBackend added in v0.12.2

func (p *Plugin) GetBackend() *template.Backend

return Backend config to allow modification before connect() for onetime param or similar

type WatchConfig

type WatchConfig struct {
	Prefix string
	Opts   easykv.WatchOptions
}

WatchConfig holds all data needed by the plugins WatchPrefix method.

Jump to

Keyboard shortcuts

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