udemy-go-microservices/logger-service/logs/logs.proto

23 lines
293 B
Protocol Buffer
Raw Normal View History

2024-09-06 20:36:07 +00:00
syntax = "proto3";
package logs;
option go_package = "/logs";
message Log {
string name = 1;
string data = 2;
}
message LogRequest {
Log logEntry = 1;
}
message LogResponse {
string result = 1;
}
service LogService {
rpc WriteLog(LogRequest) returns (LogResponse);
}