liverpc.proto 996 B

1234567891011121314151617181920212223242526272829303132333435
  1. syntax = "proto3";
  2. package liverpc;
  3. option go_package = "go-common/library/net/rpc/liverpc";
  4. message Header {
  5. // APP_NAME.xxxxx , when separated by dot,
  6. // the first part is always app_name, the rest is undefined
  7. string caller = 1;
  8. int64 uid = 2;
  9. string platform = 3;
  10. string src = 4;
  11. string trace_id = 5;
  12. string user_ip = 7;
  13. string source_group = 8;
  14. string buvid = 9;
  15. // session data, format is http query
  16. // such as access_token=abc&SESS_DATA=def
  17. string sessdata2 = 10;
  18. }
  19. // http is inside the protocol body
  20. // {"body":..., "header":..., "http":...}
  21. // this is used when a proxy forward a http request to a rpc request
  22. message HTTP {
  23. int32 is_https = 1;
  24. string body = 2; // the original body, only used when nessasary, usually null
  25. map<string, string> cookie = 3;
  26. map<string, string> header = 4;
  27. string uri = 5; // user original uri
  28. string method = 6; // http method
  29. string protocol = 7; // not much use here
  30. }