Add terminal service implementation and integration tests

- Introduced terminal.h header file defining the terminal service API.
- Implemented integration tests for terminal service registration and health checks.
- Added unit tests for FFI layer, health checks, and terminal service functionality.
- Created a mock center for testing terminal registration and deregistration.
- Ensured proper error handling and response validation in tests.
This commit is contained in:
2026-09-20 10:55:38 +08:00
parent 3bef0e4ef2
commit 7f331565c7
90 changed files with 7807 additions and 14 deletions
+14
View File
@@ -0,0 +1,14 @@
// 用于生成proto相关代码
fn main() {
connectrpc_build::Config::new()
.files(&[
"control/center.proto",
"control/terminal.proto",
"control/common/common.proto",
"third/grpc/health/v1/health.proto",
])
.includes(&["third/", "control/"])
.include_file("proto_gen.rs")
.compile()
.unwrap();
}