Skip to main content

Crate cdk_mintd

Crate cdk_mintd 

Source
Expand description

Cdk mintd lib

Modules§

cli
config
env_vars
Environment variables module
setup

Structs§

ApplyOutcome
Result of a configuration apply operation.
MigrationOutcome
Result of converting a legacy mintd configuration.
RollbackOutcome
Result of a configuration rollback operation.

Enums§

BdkWalletPolicy
Operator intent for BDK wallet persistence during configuration changes.
MintInitializationMode
Operator intent for the mint database targeted by config init.

Functions§

apply_configuration
Validates and atomically replaces the authoritative configuration record.
apply_seed_file
Overrides the configured mint and active payment backend mnemonic with a seed file.
get_work_directory
Retrieves the work directory based on command-line arguments, environment variables, or system defaults.
initialize_configuration
Initializes the authoritative configuration record in the selected database.
load_settings
Loads the application settings based on a configuration file and environment variables.
load_settings_from_args
Loads settings from command line arguments, environment variables, and optional seed file.
migrate_legacy_configuration
Converts a legacy TOML document and its active CDK_MINTD_* overrides into one database-importable TOML document.
rollback_configuration
Stages the last configuration known to have been applied successfully.
run_mintd
The main entry point for the application when used as a library
run_mintd_from_database
Runs mintd using only the configuration stored in its primary database.
run_mintd_with_shutdown
Run mintd with a custom shutdown signal
setup_tracing
Sets up and initializes a tracing subscriber with custom log filtering. Logs can be configured to output to stdout only, file only, or both. Returns a guard that must be kept alive and properly dropped on shutdown.
stored_configuration_document
Reads the unresolved authoritative configuration document.
validate_configuration_document
Validates a database-backed configuration document without writing it.