embedded

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package embedded executes one immutable source bundle in-process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Namespace      string
	IdempotencyKey string
	Facts          map[string]any
	WaitMode       runtime.WaitMode
}

type Runtime

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

Runtime owns one immutable generation and an Engine. Embedded execution is intentionally descriptor-based; Go callback executors are not supported.

func Open added in v0.4.0

func Open(ctx context.Context, source *bundle.SourceBundle, resolvers *invocation.Registry) (*Runtime, error)

Open compiles and resolves a source bundle once. The supplied registry owns only resolver implementations; all executable identity remains in bundle.

func (*Runtime) Close

func (r *Runtime) Close() error

func (*Runtime) Engine added in v0.4.0

func (r *Runtime) Engine() *runtime.Engine

func (*Runtime) Execute

func (r *Runtime) Execute(ctx context.Context, request Request) (runtime.ExecuteResult, error)

Jump to

Keyboard shortcuts

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