core

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Registry map[string]*work.Work // Exposed for Sync

	Config GlobalConfig
	// contains filtered or unexported fields
}

func New

func New() *Engine

func (*Engine) Build

func (e *Engine) Build(source string) (*work.Work, error)

func (*Engine) ExecuteLambda

func (e *Engine) ExecuteLambda(w *work.Work, sFn *value.ScriptFunction, req *http.Request, writer http.ResponseWriter, params ...map[string]value.Value) (res Result)

func (*Engine) RegisterWork

func (e *Engine) RegisterWork(w *work.Work)

func (*Engine) SyncRegistry

func (e *Engine) SyncRegistry()

func (*Engine) Trigger

func (e *Engine) Trigger(ctx context.Context, w *work.Work, req *http.Request, writer http.ResponseWriter, params ...map[string]value.Value) Result

type ExecutionContext

type ExecutionContext struct {
	// contains filtered or unexported fields
}

type GlobalConfig

type GlobalConfig struct {
	Port    int
	Sources []string
	Debug   bool
}

type Result

type Result struct {
	Value    value.Value
	Response value.Value
	ResType  string
	Error    string
	Energy   uint64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL