Documentation ¶
Index ¶
- func LoadPluginPath(driverConfig *config.DriverConfig, pluginToolConfig map[string]interface{}) string
- type PluginHandler
- func (pH *PluginHandler) AddKernelPlugin(service string, driverConfig *config.DriverConfig)
- func (pH *PluginHandler) DynamicReloader(driverConfig *config.DriverConfig)
- func (pH *PluginHandler) GetPluginHandler(service string, driverConfig *config.DriverConfig) *PluginHandler
- func (pluginHandler *PluginHandler) Handle_Chat(driverConfig *config.DriverConfig)
- func (pluginHandler *PluginHandler) Init(properties *map[string]interface{})
- func (pluginHandler *PluginHandler) LoadPluginMod(driverConfig *config.DriverConfig, pluginPath string)
- func (pluginHandler *PluginHandler) PluginserviceStart(driverConfig *config.DriverConfig, pluginToolConfig map[string]interface{}, ...)
- func (pluginHandler *PluginHandler) PluginserviceStop(driverConfig *config.DriverConfig)
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 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 }
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)
Click to show internal directories.
Click to hide internal directories.