Skip to content

Commit d302a0a

Browse files
committed
Add Drain message, and generated files.
- make gen-proto - go mod vendor
1 parent 26b0440 commit d302a0a

File tree

5 files changed

+234
-74
lines changed

5 files changed

+234
-74
lines changed

konnectivity-client/proto/client/client.pb.go

Lines changed: 109 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

konnectivity-client/proto/client/client.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ enum PacketType {
3030
CLOSE_RSP = 3;
3131
DATA = 4;
3232
DIAL_CLS = 5;
33+
DRAIN = 6;
3334
}
3435

3536
message Packet {
@@ -42,6 +43,7 @@ message Packet {
4243
CloseRequest closeRequest = 5;
4344
CloseResponse closeResponse = 6;
4445
CloseDial closeDial = 7;
46+
Drain drain = 8;
4547
}
4648
}
4749

@@ -85,6 +87,11 @@ message CloseDial {
8587
int64 random = 1;
8688
}
8789

90+
message Drain {
91+
// A hint from an Agent to Server that it is pending termination.
92+
// A Server should prefer non-draining agents for new dials.
93+
}
94+
8895
message Data {
8996
// connectID to connect to
9097
int64 connectID = 1;

0 commit comments

Comments
 (0)