Skip to content

Commit 30d6d4f

Browse files
authored
feat: Adding TestConnection endpoint (#22)
Adding a TestConnection endpoint to allow connectivity testing whilst configuring plugins in managed sync.
1 parent 97d960d commit 30d6d4f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

plugin/v3/plugin.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ service Plugin {
2929
rpc Write(stream Write.Request) returns (Write.Response);
3030
// Send signal to flush and close open connections
3131
rpc Close(Close.Request) returns (Close.Response);
32+
// Validate and test the connections used by the plugin
33+
rpc TestConnection(TestConnection.Request) returns (TestConnection.Response);
3234
}
3335

3436
message GetName {
@@ -192,3 +194,14 @@ message Close {
192194
message Request {}
193195
message Response {}
194196
}
197+
198+
message TestConnection {
199+
message Request{
200+
bytes spec = 1; // Internal plugin-specific spec
201+
}
202+
message Response{
203+
bool success = 1;
204+
string failure_code = 2;
205+
string failure_description = 3;
206+
}
207+
}

0 commit comments

Comments
 (0)