Versions in this module Expand all Collapse all v0 v0.8.2 Oct 25, 2025 v0.8.1 Oct 25, 2025 v0.8.0 Oct 25, 2025 Changes in this version type ScriptResult + func ScriptResultWithError(err error) *ScriptResult v0.7.2 Oct 21, 2025 v0.7.1 Oct 2, 2025 v0.7.0 Oct 2, 2025 v0.6.2 Sep 30, 2025 v0.6.1 Sep 30, 2025 v0.6.0 Sep 30, 2025 v0.5.0 Aug 30, 2025 Changes in this version + func StartAllExecutors(ctx context.Context, scriptStore store.ScriptStore, ...) map[string]Executor + func StopAllExecutors(executors map[string]Executor) type Executor + func ExecutorByName(name string, executors map[string]Executor) (Executor, error) v0.4.1 Aug 30, 2025 Changes in this version + const EXECUTOR_PODMAN_NAME type Message + Async bool + type PodmanExecutor struct + ConnText context.Context + func NewPodmanExecutor(ctx context.Context, store msgstore.ScriptStore) (*PodmanExecutor, error) + func (pe *PodmanExecutor) HandleMessage(ctx context.Context, msg *Message, replyFunc ReplyFunc) + func (pe *PodmanExecutor) Stop() + type ReplyFunc func(r *Reply) v0.4.0 Jul 29, 2025 Changes in this version + const EXECUTOR_LUA_NAME + const EXECUTOR_WASM_NAME + const MAX_LUA_RUNNING_TIME + type Executor interface + HandleMessage func(context.Context, *Message, func(*Reply)) + Stop func() + func NewLuaExecutor(store msgstore.ScriptStore, plugins []msgplugins.PreloadFunc, nc *nats.Conn) Executor + func NewWasmExecutor(store msgstore.ScriptStore, plugins []msgplugins.PreloadFunc, nc *nats.Conn) Executor + type LuaExecutor struct + func (le *LuaExecutor) HandleMessage(ctx context.Context, msg *Message, replyFunc func(r *Reply)) + func (se *LuaExecutor) Stop() + type Message struct + Executor string + Method string + Payload []byte + Raw bool + Subject string + URL string + type NoScriptFoundError struct + func (e *NoScriptFoundError) Error() string + type Reply struct + AllResults map[string]*ScriptResult + Error string + HTML bool + Results sync.Map + func NewErrReply(err error) *Reply + func NewReply() *Reply + func (r *Reply) Bytes() []byte + func (r *Reply) JSON() ([]byte, error) + type ScriptResult struct + Code int + Error string + Headers map[string]string + IsHTML bool + Payload []byte + type WasmExecutor struct + func (we *WasmExecutor) HandleMessage(ctx context.Context, msg *Message, replyFunc func(r *Reply)) + func (we *WasmExecutor) Stop()