snapshot of https://github.com/ThreeDotsLabs/watermill.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
master / ci (push) Failing after 0s
Some checks failed
master / ci (push) Failing after 0s
This commit is contained in:
38
components/cqrs/testdata/events.proto
vendored
Normal file
38
components/cqrs/testdata/events.proto
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
syntax = "proto3";
|
||||
package cqrs_test;
|
||||
option go_package = "./cqrs_test";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message TestProtobufLegacyEvent {
|
||||
string id = 1;
|
||||
google.protobuf.Timestamp when = 3;
|
||||
}
|
||||
|
||||
enum Status {
|
||||
STATUS_UNSPECIFIED = 0;
|
||||
ACTIVE = 1;
|
||||
DELETED = 2;
|
||||
}
|
||||
|
||||
message SubEvent {
|
||||
repeated string tags = 1;
|
||||
map<string, bool> flags = 2;
|
||||
}
|
||||
|
||||
message TestComplexProtobufEvent {
|
||||
string id = 1;
|
||||
bytes data = 2;
|
||||
google.protobuf.Timestamp when = 3;
|
||||
|
||||
map<string, SubEvent> nested_map = 4;
|
||||
repeated SubEvent events = 5;
|
||||
|
||||
oneof result {
|
||||
SubEvent success = 6;
|
||||
string error = 7;
|
||||
Status fallback = 8;
|
||||
}
|
||||
|
||||
reserved 23 to 30;
|
||||
}
|
||||
Reference in New Issue
Block a user