go17/skills/protobuf/event.proto

33 lines
446 B
Protocol Buffer
Raw Normal View History

2025-02-16 16:42:14 +08:00
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;
}