33 lines
446 B
Protocol Buffer
33 lines
446 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package hello;
|
||
|
option go_package="gitlab.com/go-course-project/go17/skills/protobuf";
|
||
|
|
||
|
import "google/protobuf/any.proto";
|
||
|
|
||
|
enum EVENT_TYPE {
|
||
|
ECS = 0;
|
||
|
RDS = 1;
|
||
|
}
|
||
|
|
||
|
message EVENT_ECS {
|
||
|
string message = 1;
|
||
|
}
|
||
|
|
||
|
message EVENT_RDS {
|
||
|
string message = 1;
|
||
|
}
|
||
|
|
||
|
message Event {
|
||
|
// 事件类型(ECS/RDS/...)
|
||
|
// ECS
|
||
|
EVENT_TYPE type = 1;
|
||
|
string message = 2;
|
||
|
repeated google.protobuf.Any detail = 3;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|