Files
threshold/internal/proto/worker/proxy/v1/proxy.proto
T
Johan Brandhorst-Satzkorn f69fbf2255 feat(proto): Format protobuf files with buf (#2033)
Formats all protobuf files with buf format. This ensures
a consistent style across all our protobuf files, similar
to gofumpt.
2022-05-04 11:10:21 -04:00

26 lines
621 B
Protocol Buffer

syntax = "proto3";
package worker.proxy.v1;
import "google/protobuf/timestamp.proto";
option go_package = "github.com/hashicorp/boundary/internal/proxy;proxy";
enum HANDSHAKECOMMAND {
// Note: Unspecified is the desired zero value based on protolint, but for
// our purposes it simply means a normal connection.
HANDSHAKECOMMAND_UNSPECIFIED = 0;
HANDSHAKECOMMAND_SESSION_CANCEL = 1;
}
message ClientHandshake {
string tofu_token = 10;
HANDSHAKECOMMAND command = 20;
}
message HandshakeResult {
google.protobuf.Timestamp expiration = 10;
int32 connection_limit = 20;
int32 connections_left = 30;
}