2021-01-13 08:11:44 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-10-28 00:36:45 +03:00
|
|
|
package servicepb;
|
|
|
|
option go_package="go.unistack.org/micro-logger-service/v3/proto;servicepb";
|
2021-01-13 08:11:44 +03:00
|
|
|
|
2021-10-28 00:36:45 +03:00
|
|
|
service LoggerService {
|
2021-01-13 08:11:44 +03:00
|
|
|
rpc Log(Message) returns (Empty) {};
|
|
|
|
}
|
|
|
|
|
|
|
|
message Empty {};
|
|
|
|
|
|
|
|
message Message {
|
|
|
|
int32 level = 1;
|
|
|
|
string format = 2;
|
|
|
|
string msg = 3;
|
|
|
|
repeated Field fields = 4;
|
|
|
|
};
|
|
|
|
|
|
|
|
message Field {
|
|
|
|
string key = 1;
|
|
|
|
oneof val {
|
2021-02-10 13:18:31 +03:00
|
|
|
// https://developers.google.com/protocol-buffers/docs/proto3#scalar
|
2021-01-13 08:11:44 +03:00
|
|
|
double double_val = 2;
|
|
|
|
float float_val = 3;
|
|
|
|
int32 int32_val = 4;
|
|
|
|
int64 int64_val = 5;
|
|
|
|
//1
|
|
|
|
};
|
|
|
|
};
|