Module server

Module server 

Source

Structs§

RandomQuery
Server
ServerConfig
ServerState
StartupConfig
Configuration for server startup

Functions§

get_ascii_art_banner
Returns the ASCII art banner as a string
handle_bundle
handle_bundle_data
handle_bundle_jsonl
handle_debug_didindex
handle_debug_memory
handle_debug_resolver
handle_did_routing_guard
handle_index_json
handle_mempool
handle_operation
handle_random_dids
handle_root
handle_status
parse_duration
Parse duration string (e.g., “60s”, “5m”, “1h”) into Duration
start_server
Main server startup function that orchestrates all initialization

Type Aliases§

ProgressCallback
Progress callback for DID index building Arguments: (current_bundle, total_bundles, bytes_processed, total_bytes)
ProgressCallbackFactory
Progress callback factory type Takes (last_bundle, total_bytes) and returns (progress_callback, finish_function)
ProgressFinish
Finish function for progress tracking (e.g., to finish a progress bar)