Files
zeekay 765c3d0aa1 hanzo-ds/native: de-branded native protocol lib (fork of clickhouse ch-go v0.71.0)
Module path, package names, and identifiers de-branded to native/proto/compress/
pool/tracing. Server wire-protocol strings preserved. Vendored codec surface used
by hanzo-ds/go (proto + compress).
2026-07-10 13:10:07 -07:00

22 lines
918 B
Go

package proto
//go:generate go run github.com/dmarkham/enumer -type ClientCode -trimprefix ClientCode -output client_code_enum.go
// ClientCode is sent from client to server.
type ClientCode byte
// Possible client codes.
const (
ClientCodeHello ClientCode = 0 // client part of "handshake"
ClientCodeQuery ClientCode = 1 // query start
ClientCodeData ClientCode = 2 // data block (can be compressed)
ClientCodeCancel ClientCode = 3 // query cancel
ClientCodePing ClientCode = 4 // ping request to server
ClientTablesStatusRequest ClientCode = 5 // tables status request
ClientCodeSSHChallengeRequest ClientCode = 11 // request for SSH signature challenge
ClientCodeSSHChallengeResponse ClientCode = 12 // response with SSH signature
)
// Encode to buffer.
func (c ClientCode) Encode(b *Buffer) { b.PutByte(byte(c)) }