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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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