16 lines
514 B
Rust
16 lines
514 B
Rust
//! Handler 工具模块
|
|
//!
|
|
//! 提供 handler 层共享的工具函数和常量。
|
|
|
|
mod grpc_addr;
|
|
mod i18n_extractors;
|
|
mod locale;
|
|
mod paths;
|
|
|
|
pub use grpc_addr::{
|
|
extract_grpc_addr, extract_grpc_addr_with_port, get_realtime_container_ip,
|
|
};
|
|
pub use i18n_extractors::{I18nJson, I18nJsonOrQuery, I18nPath, I18nQuery, require_field};
|
|
pub use locale::get_locale_from_headers;
|
|
pub use paths::{COMPUTER_WORKSPACE_ROOT, WORKSPACE_ROOT, build_workspace_path, build_computer_workspace_path, project_dir, user_dir};
|