-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
119 changed files
with
1,567 additions
and
966 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
syntax = "proto3"; | ||
|
||
package cdc_service; | ||
|
||
option optimize_for = SPEED; | ||
|
||
// Notes: This proto needs to be self-contained | ||
message Status { | ||
enum Code { | ||
UNSPECIFIED = 0; | ||
OK = 1; | ||
} | ||
Code code = 1; | ||
string message = 2; | ||
} | ||
|
||
message DbConnectorProperties { | ||
string database_host = 1; | ||
string database_port = 2; | ||
string database_user = 3; | ||
string database_password = 4; | ||
string database_name = 5; | ||
string table_name = 6; | ||
string partition = 7; | ||
string start_offset = 8; | ||
bool include_schema_events = 9; | ||
} | ||
|
||
message CdcMessage { | ||
string payload = 1; | ||
string partition = 2; | ||
string offset = 3; | ||
} | ||
|
||
message GetEventStreamRequest { | ||
uint64 source_id = 1; | ||
DbConnectorProperties properties = 2; | ||
} | ||
|
||
message GetEventStreamResponse { | ||
uint64 source_id = 1; | ||
repeated CdcMessage events = 2; | ||
} | ||
|
||
service CdcService { | ||
rpc GetEventStream(GetEventStreamRequest) returns (stream GetEventStreamResponse); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.