Client protocol reference is in progress.Most examples are only in Go.
Varint
For lengths, packet codes and other cases the unsigned varint encoding is used. Use binary.PutUvarint and binary.ReadUvarint.Signed varint isn’t used.
String
Variable length strings are encoded as (length, value), where length is varint and value is utf8 string.- Encode
- Decode
- Hex dump
- Base64
- Go
Integers
Int32
- Hex dump
- Base64
Boolean
Booleans are represented by single byte,1 is true and 0 is false.