Rename root, api and sdk module paths (imports, go.mod, go_package, ldflags, build scripts, buf configs) and regenerate protobuf/gateway code with the project's pinned toolchain. Wire identifiers unchanged. api gets a local replace for sdk; root/api/sdk require v0.1.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
29 lines
706 B
Protocol Buffer
29 lines
706 B
Protocol Buffer
// Copyright IBM Corp. 2020, 2026
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
syntax = "proto3";
|
|
|
|
package worker.proxy.v1;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/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;
|
|
}
|