mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
- Rename package from rustfs-event-notifier to event-notifier for consistency - Add shutdown hooks for event notification system in main process - Handle graceful termination of notification services on server shutdown - Implement initialization and configuration loading for event notification - Fix environment variable configuration to properly parse adapter arrays - Update example code to demonstrate proper configuration usage This change ensures proper integration between rustfs and the event notification system, with clean startup and shutdown sequences to prevent resource leaks during application lifecycle.
rustfs/ ├── Cargo.toml ├── src/ │ ├── main.rs # 主入口 │ ├── admin/ │ │ └── mod.rs # 管理接口 │ ├── auth/ │ │ └── mod.rs # 认证模块 │ ├── config/ │ │ ├── mod.rs # 配置模块 │ │ └── options.rs # 命令行参数 │ ├── console/ │ │ ├── mod.rs # 控制台模块 │ │ └── server.rs # 控制台服务器 │ ├── grpc/ │ │ └── mod.rs # gRPC 服务 │ ├── license/ │ │ └── mod.rs # 许可证管理 │ ├── logging/ │ │ └── mod.rs # 日志管理 │ ├── server/ │ │ ├── mod.rs # 服务器实现 │ │ ├── connection.rs # 连接处理 │ │ ├── service.rs # 服务实现 │ │ └── state.rs # 状态管理 │ ├── storage/ │ │ ├── mod.rs # 存储模块 │ │ └── fs.rs # 文件系统实现 │ └── utils/ │ └── mod.rs # 工具函数