partner

command
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 Imports: 13 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

Command partner-emulator runs the stand's trading partner (see mocks/partner/server).

Settings from the environment: PARTNER_DB_URL (required; it writes only to its schema mock_partner), PARTNER_LISTEN (default 127.0.0.1:8083), GATEWAY_URL (where the 997 goes), PARTNER_TOKENS_FILE (JSON {"<partner id>": "<token>"}, read again at every send; a key "<reply url> <partner id>" is the token at one gateway process and is looked up first), and the knobs PARTNER_ACK_DELAY_MS, PARTNER_ACK_STATUS (A, E, R, P or none, default A), PARTNER_MDN_DELAY_MS and PARTNER_MDN_DROP (0 to 1). POST /control changes the knobs at run time ({"ack_delay_ms", "ack_status", "mdn_delay_ms", "mdn_drop"}).

"partner-emulator healthcheck" calls /healthz on the local port and exits 0 or 1 (the container image has no curl).

Directories

Path Synopsis
Package server is partner-emulator: the stand's trading partner that receives the documents the gateway sends and answers them the way a real partner does.
Package server is partner-emulator: the stand's trading partner that receives the documents the gateway sends and answers them the way a real partner does.

Jump to

Keyboard shortcuts

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