23 lines
362 B
Protocol Buffer
23 lines
362 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package servicepb;
|
|
option go_package="go.unistack.org/micro-logger-service/v3/proto;servicepb";
|
|
|
|
service LoggerService {
|
|
rpc Log(LogReq) returns (LogRsp) {};
|
|
}
|
|
|
|
message LogRsp {};
|
|
|
|
message LogReq {
|
|
int32 level = 1;
|
|
string format = 2;
|
|
string msg = 3;
|
|
repeated Field fields = 4;
|
|
};
|
|
|
|
message Field {
|
|
string key = 1;
|
|
string val = 2;
|
|
};
|