internal/

directory
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0

Directories

Path Synopsis
Package adapters holds the clients through which the relay performs effects in other systems.
Package adapters holds the clients through which the relay performs effects in other systems.
Package approval holds the parts of the approval requests (flow P7) that are not SQL: what the operator is shown, how long a request lives, and the loop that closes requests whose time is over.
Package approval holds the parts of the approval requests (flow P7) that are not SQL: what the operator is shown, how long a request lives, and the loop that closes requests whose time is over.
Package audit makes the audit log tamper-evident: a hash chain over the rows of a tenant, signed anchors every 100 rows (in the database and in a file outside it), and a check that finds an edited row or a cut tail.
Package audit makes the audit log tamper-evident: a hash chain over the rows of a tenant, signed anchors every 100 rows (in the database and in a file outside it), and a check that finds an edited row or a cut tail.
Package config loads the gateway settings: an optional YAML file (flag --config) overridden by environment variables, checked at start.
Package config loads the gateway settings: an optional YAML file (flag --config) overridden by environment variables, checked at start.
Package contracts holds the JSON Schemas (draft 2020-12) of tool inputs and outputs, and the closed schemas of the quarantined reader's answers (notes/).
Package contracts holds the JSON Schemas (draft 2020-12) of tool inputs and outputs, and the closed schemas of the quarantined reader's answers (notes/).
Package decimal reads and writes non-negative decimal numbers as whole counts of a small unit, so that money and quantities never pass through a floating point number.
Package decimal reads and writes non-negative decimal numbers as whole counts of a small unit, so that money and quantities never pass through a floating point number.
Package edge is the gate in front of the gateway's two HTTP entrances: /mcp for agents and /edi/inbound for partners (the second is in internal/inbound).
Package edge is the gate in front of the gateway's two HTTP entrances: /mcp for agents and /edi/inbound for partners (the second is in internal/inbound).
edi
document
Package document holds the types of the stored document body and reads it back for the agent.
Package document holds the types of the stored document body and reads it back for the agent.
outbound
Package outbound builds the documents the gateway sends to a partner: the 855 (order acknowledgment) and the 856 (ship notice).
Package outbound builds the documents the gateway sends to a partner: the 855 (order acknowledgment) and the 856 (ship notice).
x12
Package x12 is a strict reader and writer of ANSI X12 004010 interchanges.
Package x12 is a strict reader and writer of ANSI X12 004010 interchanges.
Package inbound is the HTTP entrance for partners: POST /edi/inbound.
Package inbound is the HTTP entrance for partners: POST /edi/inbound.
Package mcpserver registers the gateway's tools in the go-sdk server.
Package mcpserver registers the gateway's tools in the go-sdk server.
Package mode names the configurations the gateway can play (flag --mode, variable EDIGATE_MODE).
Package mode names the configurations the gateway can play (flag --mode, variable EDIGATE_MODE).
Package ops is the HTTP entrance of operators: /ops/.
Package ops is the HTTP entrance of operators: /ops/.
Package policy asks the embedded OPA whether a tool call may go on, and at which price: at once, after one operator, or after two.
Package policy asks the embedded OPA whether a tool call may go on, and at which price: at once, after one operator, or after two.
Package quarantine is the one place where a model reads partner text (control M5, flow P3).
Package quarantine is the one place where a model reads partner text (control M5, flow P3).
Package rpcerr is the single error format of the gateway.
Package rpcerr is the single error format of the gateway.
Package sanitize turns an accepted X12 set into what the agent may see: the typed body and the notes (control M1, the white list).
Package sanitize turns an accepted X12 set into what the agent may see: the typed body and the notes (control M1, the white list).
Package store owns the PostgreSQL pool, the embedded goose migrations and every SQL query of the gateway.
Package store owns the PostgreSQL pool, the embedded goose migrations and every SQL query of the gateway.
storetest
Package storetest gives tests a throwaway migrated database.
Package storetest gives tests a throwaway migrated database.
Package taint stops a reference to a note from reaching a tool that has an effect (control M3).
Package taint stops a reference to a note from reaching a tool that has an effect (control M3).
Package tools holds the services behind the MCP tools.
Package tools holds the services behind the MCP tools.
txn
Package txn holds the pure parts of the guarantee "at most one effect per business key": the idempotency key (invariant I2), the hash of the request and the order payload (this file and order.go), and the relay that delivers the outbox (relay.go).
Package txn holds the pure parts of the guarantee "at most one effect per business key": the idempotency key (invariant I2), the hash of the request and the order payload (this file and order.go), and the relay that delivers the outbox (relay.go).
saga
Package saga drives the sagas (invariant I5): it looks at the open sagas again and again and does what each one needs next.
Package saga drives the sagas (invariant I5): it looks at the open sagas again and again and does what each one needs next.
The linter of tool descriptions: a signal for the administrator who pins a tool, not a border (control M2).
The linter of tool descriptions: a signal for the administrator who pins a tool, not a border (control M2).

Jump to

Keyboard shortcuts

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