Versions in this module Expand all Collapse all v0 v0.1.1 Feb 11, 2026 v0.1.0 Feb 11, 2026 v0.0.2 Feb 6, 2026 Changes in this version + type CmdExecuteHookProtoPost func(ctx context.Context, cmdInfo ICommandInfo, eventIn IEvent, eventOut IEvent, ...) error + type CmdExecuteHookProtoPre func(ctx context.Context, cmdInfo ICommandInfo, eventIn IEvent) error + type CommandExecutorProto func(ctx context.Context, cmdInfo ICommandInfo, eventIn IEvent) (eventOut IEvent, err error) + type ConfigCacheItem struct + func NewConfigCacheItem[T any]() ConfigCacheItem[T] + func (c *ConfigCacheItem[T]) Key() string + func (c *ConfigCacheItem[T]) Raw() *ConfigItem + func (c *ConfigCacheItem[T]) Set(item *ConfigItem) bool + func (c *ConfigCacheItem[T]) Value() T + type ConfigInitItem struct + CacheItemRef any + DefaultValue any + Index *int + Internal bool + ItemRef any + Key string + Optional bool + Type string + type ConfigItem struct + func NewConfigItem(index int, key string, val any) *ConfigItem + func (c *ConfigItem) Bool() bool + func (c *ConfigItem) Fill(dest any) + func (c *ConfigItem) Float32() float32 + func (c *ConfigItem) Float64() float64 + func (c *ConfigItem) Index() int + func (c *ConfigItem) Int() int + func (c *ConfigItem) Int16() int16 + func (c *ConfigItem) Int32() int32 + func (c *ConfigItem) Int64() int64 + func (c *ConfigItem) Int8() int8 + func (c *ConfigItem) Key() string + func (c *ConfigItem) SetValue(v any) + func (c *ConfigItem) String() string + func (c *ConfigItem) TryBool() (bool, bool) + func (c *ConfigItem) TryFill(dest any) (ok bool) + func (c *ConfigItem) TryFloat32() (float32, bool) + func (c *ConfigItem) TryFloat64() (float64, bool) + func (c *ConfigItem) TryInt() (int, bool) + func (c *ConfigItem) TryInt16() (int16, bool) + func (c *ConfigItem) TryInt32() (int32, bool) + func (c *ConfigItem) TryInt64() (int64, bool) + func (c *ConfigItem) TryInt8() (int8, bool) + func (c *ConfigItem) TryString() (res string, ok bool) + func (c *ConfigItem) TryUint() (uint, bool) + func (c *ConfigItem) TryUint16() (uint16, bool) + func (c *ConfigItem) TryUint32() (uint32, bool) + func (c *ConfigItem) TryUint64() (uint64, bool) + func (c *ConfigItem) TryUint8() (uint8, bool) + func (c *ConfigItem) Uint() uint + func (c *ConfigItem) Uint16() uint16 + func (c *ConfigItem) Uint32() uint32 + func (c *ConfigItem) Uint64() uint64 + func (c *ConfigItem) Uint8() uint8 + func (c *ConfigItem) Updated() int64 + func (c *ConfigItem) Value() any + func (c *ConfigItem) Value2() (val any, updated int64) + type EngineCtxKey struct + type Event2MapOpts struct + Created bool + Data bool + DataMaxSize bool + DataType bool + ErrData bool + ErrSize bool + Expired bool + MaxDataSize int64 + OwnerUuid bool + Status bool + type EventAction uint16 + func (e EventAction) DbString() string + type EventCategory uint16 + func (e EventCategory) DbString() string + type EventCloneOpts struct + Action *EventAction + Category []EventCategory + Created *int64 + DataMaxSize *int64 + DataSize *int64 + DataType *EventDataType + Expired *int64 + Kind *EventKind + Meta IMeta + Opts map[EventOpt]any + OwnerType *EventOwnerType + OwnerUuid *UUID + Priority *EventPriority + Status *EventStatus + Type *EventType + Uuid *UUID + VirtualUuid *UUID + type EventDataProto func(ctx context.Context, event IEvent) (data IData, err error) + type EventDataType uint16 + func (e EventDataType) DbString() string + type EventKind uint16 + func (e EventKind) DbString() string + type EventOpt int + func (e EventOpt) DbString() string + type EventOwnerType uint8 + func (e EventOwnerType) DbString() string + type EventPriority uint16 + func (e EventPriority) DbString() string + type EventSetDataProto func(ctx context.Context, event IEvent, data any, size ...int64) (err error) + type EventStatus uint16 + func (e EventStatus) DbString() string + type EventType uint8 + func (e EventType) DbString() string + type HookExecuteProto func(ctx context.Context, hookImpl any) (next bool, err error) + type ICommand interface + Action func() EventAction + Category func() []EventCategory + CheckAccess func(ctx context.Context, eventIn IEvent) (ok bool, err error) + CheckOnResultAccess func(ctx context.Context, event IEvent) (ok bool, err error) + Execute func(ctx context.Context, eventIn IEvent) (eventOut IEvent, err error) + Kind func() EventKind + Name func() string + OnResult func(ctx context.Context, event IEvent) (IEvent, error) + OnResultError func(ctx context.Context, event IEvent) (IEvent, error) + type ICommandExecutor interface + Execute func(ctx context.Context, cmdInfo ICommandInfo, eventIn IEvent) (eventOut IEvent, err error) + Plugin func() IPlugin + type ICommandHooks interface + AddPost func(plugin IPlugin, fn CmdExecuteHookProtoPost) + AddPre func(plugin IPlugin, fn CmdExecuteHookProtoPre) + ExecutePost func(ctx context.Context, cmdInfo ICommandInfo, eventIn IEvent, eventOut IEvent, ...) error + ExecutePre func(ctx context.Context, cmdInfo ICommandInfo, eventIn IEvent) error + RemovePost func(plugin IPlugin, fn ...CmdExecuteHookProtoPost) + RemovePre func(plugin IPlugin, fn ...CmdExecuteHookProtoPre) + type ICommandInfo interface + AddPostHook func(plugin IPlugin, fn CmdExecuteHookProtoPost) + AddPreHook func(plugin IPlugin, fn CmdExecuteHookProtoPre) + Command func() ICommand + ExecutePostHook func(ctx context.Context, eventIn IEvent, eventOut IEvent, err error) error + ExecutePreHook func(ctx context.Context, eventIn IEvent) error + Hooks func() ICommandHooks + Plugin func() IPlugin + RemovePostHook func(plugin IPlugin, fn ...CmdExecuteHookProtoPost) + RemovePreHook func(plugin IPlugin, fn ...CmdExecuteHookProtoPre) + type ICommandManager interface + AddPostHook func(plugin IPlugin, fn CmdExecuteHookProtoPost) + AddPreHook func(plugin IPlugin, fn CmdExecuteHookProtoPre) + Execute func(ctx context.Context, event IEvent) (IEvent, error) + Executor func() ICommandExecutor + Id func(sig ICommandSignature) (cmdId int64, err error) + Name func(sig ICommandSignature) (name string, err error) + Path func(sig ICommandSignature) string + RemovePostHook func(plugin IPlugin, fn ...CmdExecuteHookProtoPost) + RemovePreHook func(plugin IPlugin, fn ...CmdExecuteHookProtoPre) + SetExecutor func(ctx context.Context, plugin IPlugin) (err error) + Signature func(cmdId int64) (sig ICommandSignature, err error) + type ICommandReplacer interface + ShouldReplace func() bool + type ICommandSignature interface + Action func() EventAction + Category func() []EventCategory + Kind func() EventKind + type IData = adata.IData + type IDataFromFile = adata.IDataFromFile + type IDataFromMem = adata.IDataFromMem + type IEngine interface + Config func() IEngineConfig + ObjectManager func() IObjectManager + SetConfig func(config IEngineConfig, force bool) error + type IEngineConfig interface + Bool func(index int) bool + BoolOrDefault func(index int, d bool) bool + Count func() int + Filepath func() string + Float32 func(index int) float32 + Float32OrDefault func(index int, d float32) float32 + Float64 func(index int) float64 + Float64OrDefault func(index int, d float64) float64 + Index func(key string) (index int) + Int func(index int) int + Int16 func(index int) int16 + Int16OrDefault func(index int, d int16) int16 + Int32 func(index int) int32 + Int32OrDefault func(index int, d int32) int32 + Int64 func(index int) int64 + Int64OrDefault func(index int, d int64) int64 + Int8 func(index int) int8 + Int8OrDefault func(index int, d int8) int8 + IntOrDefault func(index int, d int) int + Item func(index int) *ConfigItem + Item2 func(key string) *ConfigItem + Key func(index int) (key string) + KeyList func() []string + PrepareKeys func(key ...string) (key2index map[string]int, err error) + Raw func() (raw map[string]any, err error) + Set func(index int, val any) error + Set2 func(key string, val any) error + String func(index int) string + StringOrDefault func(index int, d string) string + TryBool func(index int) (bool, bool) + TryFloat32 func(index int) (float32, bool) + TryFloat64 func(index int) (float64, bool) + TryInt func(index int) (int, bool) + TryInt16 func(index int) (int16, bool) + TryInt32 func(index int) (int32, bool) + TryInt64 func(index int) (int64, bool) + TryInt8 func(index int) (int8, bool) + TryString func(index int) (res string, ok bool) + TryUint func(index int) (uint, bool) + TryUint16 func(index int) (uint16, bool) + TryUint32 func(index int) (uint32, bool) + TryUint64 func(index int) (uint64, bool) + TryUint8 func(index int) (uint8, bool) + TryValue func(index int) (val any, ok bool) + TryValue2 func(key string) (val any, ok bool) + Uint func(index int) uint + Uint16 func(index int) uint16 + Uint16OrDefault func(index int, d uint16) uint16 + Uint32 func(index int) uint32 + Uint32OrDefault func(index int, d uint32) uint32 + Uint64 func(index int) uint64 + Uint64OrDefault func(index int, d uint64) uint64 + Uint8 func(index int) uint8 + Uint8OrDefault func(index int, d uint8) uint8 + UintOrDefault func(index int, d uint) uint + Value func(index int) any + Value2 func(key string) any + ValueOrDefault func(index int, d any) any + ValueOrDefault2 func(key string, d any) any + type IEvent interface + Action func() EventAction + Category func() []EventCategory + Clone func(opts EventCloneOpts) (IEvent, error) + CloneWithData func(ctx context.Context, type_ EventType, data any) (IEvent, error) + CloneWithMeta func(type_ EventType, meta map[string]any) (IEvent, error) + CloneWithMetaAndData func(ctx context.Context, type_ EventType, meta map[string]any, data any) (IEvent, error) + CloneWithType func(type_ EventType) (IEvent, error) + Created func() int64 + Data func(ctx context.Context) (IData, error) + DataMaxSize func() int64 + DataSize func() int64 + DataType func() EventDataType + Expired func() int64 + IsData func() bool + Kind func() EventKind + Meta func() IMeta + MetaSize func() int64 + OptVal func(key EventOpt) (any, bool) + Opts func() map[EventOpt]any + OwnerType func() EventOwnerType + OwnerUuid func() UUID + Priority func() EventPriority + SetData func(ctx context.Context, data any, size ...int64) error + SetData2 func(ctx context.Context, data any, dataType EventDataType, size ...int64) error + SetDataMaxSize func(size int64) + SetDataRaw func(ctx context.Context, data any, size ...int64) error + SetDataRaw2 func(ctx context.Context, data any, dataType EventDataType, size ...int64) error + SetDataSize func(size int64) + SetDataType func(dataType EventDataType) + SetMeta func(data map[string]any) + SetOptVal func(key EventOpt, val any) + SetStatus func(status EventStatus) + SetVirtualUuid func(uuid UUID) + Status func() EventStatus + ToMap func() map[string]any + Type func() EventType + Uuid func() UUID + VirtualUuid func() UUID + type IHook interface + Add func(plugin IPlugin, hookImpl any, posX int, posY int) error + DisconnectPlugin func(plugin IPlugin) + ImplList func() []IHookImpl + Index func() int + Name func() string + PostImplList func() []IHookImpl + PreImplList func() []IHookImpl + Prototype func() any + String func() string + type IHookImpl interface + Get func() any + Plugin func() IPlugin + type IHookManager interface + Execute func(ctx context.Context, hookName string, f HookExecuteProto) (err error) + Execute2 func(ctx context.Context, hook IHook, f HookExecuteProto) (err error) + Execute3 func(ctx context.Context, index int, f HookExecuteProto) (err error) + Get func(name string) IHook + MustExecute func(ctx context.Context, hookName string, f HookExecuteProto) (err error) + MustExecute2 func(ctx context.Context, hook IHook, f HookExecuteProto) (err error) + MustExecute3 func(ctx context.Context, index int, f HookExecuteProto) (err error) + Register func(hookName string, prototype any) (IHook, error) + type IMeta interface + Clone func() (IMeta, error) + Data func() map[string]any + RawValue func(key string) (raw any, ok bool) + SetData func(data map[string]any) + SetValue func(key string, value any) error + Size func() int64 + Value func(key string, out any) (err error) + type IMetaSource interface + IsMetaSource func() + type IObjectManager interface + Get func(key int) any + Set func(key int, obj any, force bool) error + type IPlugin interface + Active func() bool + Init func(ctx context.Context, install bool) error + Load func(ctx context.Context, pluginConfig IPluginConfig) error + Name func() string + PreInit func(ctx context.Context, install bool) error + Settings func() Settings + Tag func() string + Update func(ctx context.Context, pluginConfig IPluginConfig) error + Version func() string + type IPluginCommandExecutor interface + CommandExecutor func() CommandExecutorProto + type IPluginCommands interface + Commands func() []ICommand + type IPluginConfig interface + Active func() bool + Name func() string + Settings func() Settings + Tag func() string + Update func(plugin IPlugin) + Version func() string + type IPluginConfigInitItems interface + ConfigInitItems func() []ConfigInitItem + type IPluginConnect interface + ConnectPlugin func(ctx context.Context, plugin IPlugin) error + DisconnectPlugin func(ctx context.Context, plugin IPlugin) error + type IPluginHooks interface + Hooks func() []PluginHook + type IPluginMainConfig interface + Plugins func() []PluginMainConfigPluginItem + type IPluginManager interface + Config func(ctx context.Context, tag string) IPluginConfig + DeleteConfig func(ctx context.Context, plugin IPlugin) error + Get func(tag string) IPlugin + Load func(ctx context.Context, plugin IPlugin) error + MainConfig func() IPluginMainConfig + Register func(ctx context.Context, plugin IPlugin, external bool) (new bool, err error) + ReloadMainConfig func() error + ResetConfigs func(ctx context.Context) error + type IPluginVars interface + Vars func() []PluginVarItem + type NewEventArgs struct + Action EventAction + Category []EventCategory + Created int64 + DataMaxSize int64 + DataSize int64 + DataType EventDataType + Expired int64 + Kind EventKind + Meta IMeta + Opts map[EventOpt]any + OwnerType EventOwnerType + OwnerUuid UUID + Priority EventPriority + Status EventStatus + Type EventType + Uuid UUID + VirtualUuid UUID + type PluginHook struct + Impl any + Name string + Position int + PositionCallback PluginHookPositionProto + PostHook bool + PreHook bool + Prototype any + RawHook *IHook + type PluginHookPositionProto func(ctx context.Context, pluginHook PluginHook, hook IHook) (int, error) + type PluginMainConfigPluginItem struct + Active bool + Path string + Source string + Tag string + type PluginVarItem struct + DefaultValue any + Group string + Name string + Value any + type Settings map[string]any + func (s *Settings) Scan(value any) error + func (s Settings) DbIsJsonData() bool + func (s Settings) Get(key string) (val any, ok bool) + func (s Settings) GetBool(key string) (val bool, ok bool) + func (s Settings) GetBoolOrDefault(key string, def bool) bool + func (s Settings) GetFloat(key string) (val float64, ok bool) + func (s Settings) GetFloatOrDefault(key string, def float64) float64 + func (s Settings) GetInt(key string) (val int64, ok bool) + func (s Settings) GetIntOrDefault(key string, def int64) int64 + func (s Settings) GetString(key string) (val string, ok bool) + func (s Settings) GetStringOrDefault(key string, def string) string + func (s Settings) GetUint(key string) (val uint64, ok bool) + func (s Settings) GetUintOrDefault(key string, def uint64) uint64 + func (s Settings) Set(key string, val any) + func (s Settings) String() string + func (s Settings) Value() (driver.Value, error) + type UUID = guuid.UUID