Expand description
Cdk mintd lib
Modules§
Structs§
- Apply
Outcome - Result of a configuration apply operation.
- Migration
Outcome - Result of converting a legacy mintd configuration.
- Rollback
Outcome - Result of a configuration rollback operation.
Enums§
- BdkWallet
Policy - Operator intent for BDK wallet persistence during configuration changes.
- Mint
Initialization Mode - 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.