Versions in this module Expand all Collapse all v0 v0.1.1 Apr 30, 2026 Changes in this version + var ErrScriptArgs = errors.New("script: invalid arguments") + var ErrScriptNotFound = errors.New("script: unknown name") + func CompileScripts(snap *configpb.ConfigSnapshot) (map[string]*Script, error) + type CallResult struct + CorrelationID string + Elapsed time.Duration + Error string + Logs []string + Outcome eventv1.RunOutcome + ReturnValue string + Steps uint64 + type CompileError struct + Items []*ItemError + func (e *CompileError) Error() string + type Deps struct + Logger *slog.Logger + Metrics *observability.Metrics + Store EventAppender + type Engine struct + func NewEngine(scripts map[string]*Script, runtime *ghstarlark.Runtime, deps Deps) *Engine + func (e *Engine) Call(ctx context.Context, name string, args map[string]string, invokedBy string, ...) (*CallResult, error) + func (e *Engine) Get(name string) (*Script, error) + func (e *Engine) List() []string + func (e *Engine) Reload(snapshot *configpb.ConfigSnapshot) error + func (e *Engine) Runtime() *ghstarlark.Runtime + func (e *Engine) Stop(ctx context.Context) error + type EventAppender interface + Append func(ctx context.Context, e eventstore.Event) (uint64, error) + type ItemError struct + Name string + Path string + Reason string + func (e *ItemError) Error() string + type Param struct + Default any + HasDefault bool + Name string + Required bool + Type configpb.ScriptParam_Type + func (p Param) Coerce(s string) (any, error) + type Script struct + Handler string + Name string + Params []Param