aboutsummaryrefslogtreecommitdiff
path: root/protocol/pktline/type.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-10 13:28:59 +0800
committerGravatar Runxi Yu2026-03-10 13:28:59 +0800
commitaf08c84539f9353718604988ba27ae3c466860fc (patch)
tree0f1f2536f57af69b55ae06e78efbe26a7a0b3633 /protocol/pktline/type.go
parentforgejo, github: Update issue templates (diff)
*: Move sideband64k and pktline to protocol/
Diffstat (limited to 'protocol/pktline/type.go')
-rw-r--r--protocol/pktline/type.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocol/pktline/type.go b/protocol/pktline/type.go
new file mode 100644
index 00000000..641d1c6c
--- /dev/null
+++ b/protocol/pktline/type.go
@@ -0,0 +1,15 @@
+package pktline
+
+// PacketType identifies the kind of pkt-line frame.
+type PacketType uint8
+
+const (
+ // PacketData is a regular data frame whose payload is application-defined.
+ PacketData PacketType = iota
+ // PacketFlush is control frame 0000 and marks end of a message.
+ PacketFlush
+ // PacketDelim is control frame 0001 and separates sections in protocol v2.
+ PacketDelim
+ // PacketResponseEnd is control frame 0002 and marks response end on stateless v2 transports.
+ PacketResponseEnd
+)