StreamEvent.proto 642 B

123456789101112131415161718192021222324252627282930313233343536
  1. syntax = "proto3";
  2. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  3. option java_multiple_files = true;
  4. option java_package = "com.bilibili.gateway2.common.protobuf";
  5. service Gateway2Server {
  6. rpc sendList (EventList) returns (Response) {
  7. }
  8. rpc send (SimpleEvent) returns (Response) {
  9. }
  10. }
  11. enum StatusCode {
  12. NULL = 0;
  13. SUCCESS = 200;
  14. LOAD_FULL = 429;
  15. }
  16. message SimpleEvent {
  17. string logId = 1;
  18. string outerId = 2;
  19. map<string, string> header = 3;
  20. bytes data = 4;
  21. }
  22. message EventList {
  23. repeated SimpleEvent events = 1;
  24. }
  25. message Response {
  26. StatusCode code = 1;
  27. string msg = 2;
  28. }