[−][src]Module roughenough::config
Ways to configure the Roughenough server.
The ServerConfig trait specifies the required and optional parameters available for configuring a Roughenoguh server instance.
Implementations of ServerConfig
obtain configurations from different back-end sources
such as files or environment variables.
Structs
EnvironmentConfig | Obtain a Roughenough server configuration (ServerConfig) from environment variables. |
FileConfig | Read a Roughenough server configuration (ServerConfig) from a YAML file. |
MemoryConfig | A purely in-memory Roughenough config for testing purposes. |
Constants
DEFAULT_BATCH_SIZE | Maximum number of requests to process in one batch and include the the Merkle tree. |
DEFAULT_STATUS_INTERVAL | Amount of time between each logged status update. |
Traits
ServerConfig | Specifies parameters needed to configure a Roughenough server. |
Functions
is_valid_config | Validate configuration settings. Returns |
make_config | Factory function to create a |