Versions in this module Expand all Collapse all v1 v1.5.4 Oct 26, 2023 Changes in this version + func GetPluginCount(typ common.Type) int + func GetPluginId(typ common.Type, name string) (int32, error) + func IsPluginRegistered(typ common.Type, name string) bool + func RegisterConfigurablePlugin(plugin Plugin, cfg config.BaseConfig) + func RegisterPlugin(plugin Plugin) + func RegisterPluginInterface(typ common.Type, plugin interface{}) + func RegisterPluginProxy(typ common.Type, proxy PluginProxy) + type InitContext struct + Config config.Configuration + ConnManager network.ConnectionManager + PluginIndex int32 + Plugins Supplier + SDKContextID string + ValueCtx model.ValueContext + type Manager interface + DestroyPlugins func() (err error) + InitPlugins func(initContext InitContext, types []common.Type, engine model.Engine, ...) (err error) + StartPlugins func() error + func NewPluginManager() Manager + type Plugin interface + Destroy func() error + GetSDKContextID func() string + ID func() int32 + Init func(ctx *InitContext) error + IsEnable func(cfg config.Configuration) bool + Name func() string + Start func() error + Type func() common.Type + type PluginBase struct + func NewPluginBase(ctx *InitContext) *PluginBase + func (b *PluginBase) Destroy() error + func (b *PluginBase) GetSDKContextID() string + func (b *PluginBase) ID() int32 + func (b *PluginBase) Init(ctx *InitContext) error + func (b *PluginBase) IsEnable(cfg config.Configuration) bool + func (b *PluginBase) Name() string + func (b *PluginBase) Start() error + func (b *PluginBase) Type() common.Type + type PluginProxy interface + SetRealPlugin func(plugin Plugin, engine model.Engine) + type Supplier interface + GetEventSubscribers func(event common.PluginEventType) []common.PluginEventHandler + GetPlugin func(typ common.Type, name string) (Plugin, error) + GetPluginById func(id int32) (Plugin, error) + GetPluginsByType func(typ common.Type) []string + RegisterEventSubscriber func(event common.PluginEventType, handler common.PluginEventHandler)