Skip to content

Commit

Permalink
Add Drain message, and generated files.
Browse files Browse the repository at this point in the history
- make gen-proto
- go mod vendor
  • Loading branch information
jkh52 committed Mar 13, 2024
1 parent 26b0440 commit d302a0a
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 74 deletions.
145 changes: 109 additions & 36 deletions konnectivity-client/proto/client/client.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions konnectivity-client/proto/client/client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ enum PacketType {
CLOSE_RSP = 3;
DATA = 4;
DIAL_CLS = 5;
DRAIN = 6;
}

message Packet {
Expand All @@ -42,6 +43,7 @@ message Packet {
CloseRequest closeRequest = 5;
CloseResponse closeResponse = 6;
CloseDial closeDial = 7;
Drain drain = 8;
}
}

Expand Down Expand Up @@ -85,6 +87,11 @@ message CloseDial {
int64 random = 1;
}

message Drain {
// A hint from an Agent to Server that it is pending termination.
// A Server should prefer non-draining agents for new dials.
}

message Data {
// connectID to connect to
int64 connectID = 1;
Expand Down
Loading

0 comments on commit d302a0a

Please sign in to comment.