hive

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPluginPath

func LoadPluginPath(driverConfig *config.DriverConfig, pluginToolConfig map[string]interface{}) string

Types

type KernelCtx added in v1.29.11

type KernelCtx struct {
	DeployRestartChan *chan string
	PluginRestartChan *chan core.KernelCmd
}

type PluginHandler

type PluginHandler struct {
	Name          string //service
	State         int    //0 - initialized, 1 - running, 2 - failed
	Id            string
	Signature     string //sha256 of plugin
	ConfigContext *core.ConfigContext
	Services      *map[string]*PluginHandler
	PluginMod     *plugin.Plugin
	KernelCtx     *KernelCtx
}

func InitKernel added in v1.24.6

func InitKernel(id string) *PluginHandler

func (*PluginHandler) AddKernelPlugin added in v1.24.6

func (pH *PluginHandler) AddKernelPlugin(service string, driverConfig *config.DriverConfig)

func (*PluginHandler) DynamicReloader added in v1.29.3

func (pH *PluginHandler) DynamicReloader(driverConfig *config.DriverConfig)

func (*PluginHandler) GetPluginHandler added in v1.24.6

func (pH *PluginHandler) GetPluginHandler(service string, driverConfig *config.DriverConfig) *PluginHandler

func (*PluginHandler) Handle_Chat added in v1.24.6

func (pluginHandler *PluginHandler) Handle_Chat(driverConfig *config.DriverConfig)

func (*PluginHandler) Init added in v1.24.6

func (pluginHandler *PluginHandler) Init(properties *map[string]interface{})

func (*PluginHandler) LoadPluginMod added in v1.24.6

func (pluginHandler *PluginHandler) LoadPluginMod(driverConfig *config.DriverConfig, pluginPath string)

func (*PluginHandler) PluginserviceStart

func (pluginHandler *PluginHandler) PluginserviceStart(driverConfig *config.DriverConfig, pluginToolConfig map[string]interface{}, chatReceiverChan *chan *core.ChatMsg)

func (*PluginHandler) PluginserviceStop

func (pluginHandler *PluginHandler) PluginserviceStop(driverConfig *config.DriverConfig)

Jump to

Keyboard shortcuts

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