From 4b8d39764f9b54ea3090d0fea92a23025dbea30d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 7 Mar 2026 14:24:05 +0800 Subject: protocol: Add v0v1 server protocol and its receivepack subprotocol --- protocol/v0v1/server/version.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 protocol/v0v1/server/version.go (limited to 'protocol/v0v1/server/version.go') diff --git a/protocol/v0v1/server/version.go b/protocol/v0v1/server/version.go new file mode 100644 index 00000000..23ae9466 --- /dev/null +++ b/protocol/v0v1/server/version.go @@ -0,0 +1,12 @@ +package server + +// Version identifies the protocol version used on one v0/v1 server session. +type Version uint8 + +const ( + // Version0 is the original protocol framing with no leading version line. + Version0 Version = iota + // Version1 is protocol v1, which is v0 plus one leading "version 1\n" + // pkt-line before ref advertisement. + Version1 +) -- cgit v1.3.1-10-gc9f91