mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 22:10:17 +00:00
Integrate DelegateActionManager for request handling and refactor IPC:
- Replaced `SimpleProtocol` with `TransportProtocol` in `IPCManager`. - Added `DelegateActionManager` to route requests to handlers, starting with `EchoHandler`. - Updated `MediaManagerApplication` to initialize and manage `DelegateActionManager`. - Extended Protocol Buffers schema with `Request` and `Response` definitions. - Enhanced logging for request processing and redesigned response flow.
This commit is contained in:
parent
23b6d54674
commit
a0ad10b1bc
@@ -1,9 +1,19 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "com.mediamanager.protocol";
|
||||
option java_outer_classname = "SimpleProtocol";
|
||||
option java_outer_classname = "TransportProtocol";
|
||||
|
||||
package mediamanager;
|
||||
|
||||
message TextMessage {
|
||||
string content = 1; // O texto da mensagem
|
||||
message Request {
|
||||
string request_id = 1;
|
||||
bytes payload = 2;
|
||||
map<string, string> headers = 3;
|
||||
}
|
||||
|
||||
message Response {
|
||||
string request_id = 1;
|
||||
int32 status_code = 2;
|
||||
bytes payload = 3;
|
||||
map<string, string> headers = 4;
|
||||
}
|
||||
Reference in New Issue
Block a user