29 lines
461 B
Protocol Buffer
29 lines
461 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package service;
|
|
option go_package="github.com/unistack-org/micro-logger-service;service";
|
|
|
|
service Logger {
|
|
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 {
|
|
double double_val = 2;
|
|
float float_val = 3;
|
|
int32 int32_val = 4;
|
|
int64 int64_val = 5;
|
|
//1
|
|
};
|
|
};
|