diff options
| author | 2026-03-10 13:28:59 +0800 | |
|---|---|---|
| committer | 2026-03-10 13:28:59 +0800 | |
| commit | af08c84539f9353718604988ba27ae3c466860fc (patch) | |
| tree | 0f1f2536f57af69b55ae06e78efbe26a7a0b3633 /protocol/pktline/type.go | |
| parent | forgejo, github: Update issue templates (diff) | |
*: Move sideband64k and pktline to protocol/
Diffstat (limited to 'protocol/pktline/type.go')
| -rw-r--r-- | protocol/pktline/type.go | 15 |
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 +) |
