databus.proto 688 B

12345678910111213141516171819
  1. syntax = "proto3";
  2. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  3. package infra.databus;
  4. option go_package = "databus";
  5. message Header {
  6. map<string, string> metadata = 1 [(gogoproto.jsontag) = "metadata"];
  7. }
  8. message MessagePB {
  9. string key = 1 [(gogoproto.jsontag) = "key"];
  10. bytes value = 2 [(gogoproto.jsontag) = "value", (gogoproto.casttype) = "encoding/json.RawMessage"];
  11. string topic = 3 [(gogoproto.jsontag) = "topic"];
  12. int32 partition = 4 [(gogoproto.jsontag) = "partition"];
  13. int64 offset = 5 [(gogoproto.jsontag) = "offset"];
  14. int64 timestamp = 6 [(gogoproto.jsontag) = "timestamp"];
  15. map<string, string> metadata = 7 [(gogoproto.jsontag) = "metadata"];
  16. }