embedded_orders

command
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 11 Imported by: 0 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.

README

Embedded Order Review

This example is the embedded first-run implementation. Use the Getting Started guide for the tested command and expected output.

Runtime behavior

The application performs these actions:

  1. It loads the shared order-review rule.
  2. It declares typed order facts.
  3. It registers an invocation-aware Go handler.
  4. It compiles the rule to checked IR.
  5. It derives the embedded request and idempotency key from the shared scenario artifact.
  6. It replays the idempotency key without a duplicate review.

The default ledger and outbox are process-local. The application creates no persistent state.

File map

File Purpose
main.go Defines the handler, builds the checked application, and checks replay
../../internal/demo/orderreview/ Provides the internal demo reader for the shared scenario assets
../order_review/rules/order_review.eff Contains the shared checked rule
../order_review/data/order.json Contains the shared idempotency key and HTTP request

Use the durable path when execution state must survive a process restart.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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