defaults.rs

Overview

This file defines a collection of constant values used as default configuration parameters related to network communication within the system. These constants primarily specify default URL paths, protocols, ports, and timeout durations for API requests or messaging endpoints. The values serve as standardized defaults across the application, ensuring consistency and simplifying configuration management.


Constants

DEFAULT_NODE_URL_PATH: &str

DEFAULT_NODE_URL_PROTO: &str (crate-private)

DEFAULT_NODE_URL_PORT: u16

DEFAULT_URL_PATH: &str

DEFAULT_BK_API_TIMEOUT: u64 (crate-private)


Implementation Details


Interaction with the System


Diagram

flowchart TD
A[defaults.rs] --> B[DEFAULT_NODE_URL_PATH]
A --> C[DEFAULT_NODE_URL_PROTO]
A --> D[DEFAULT_NODE_URL_PORT]
A --> E[DEFAULT_URL_PATH]
A --> F[DEFAULT_BK_API_TIMEOUT]
B --> G[Used in constructing node URLs]
C --> G
D --> G
E --> H[Used in BM API endpoint URLs]
F --> I[Used for BK API request timeout]

This diagram illustrates the constants defined in the file and their primary usage contexts within the system.