rpc: hex-ints for RequestType definitions

This commit is contained in:
Christian Schwarz 2017-05-03 17:13:08 +02:00
parent b8e7ddd61f
commit 514f9aa123

View File

@ -7,11 +7,11 @@ type RequestId [16]byte
type RequestType uint8 type RequestType uint8
const ( const (
RTProtocolVersionRequest RequestType = 1 RTProtocolVersionRequest RequestType = 0x01
RTFilesystemRequest = 16 RTFilesystemRequest = 0x10
RTInitialTransferRequest = 17 RTFilesystemVersionsRequest = 0x11
RTIncrementalTransferRequest = 18 RTInitialTransferRequest = 0x12
RTFilesystemVersionsRequest = 19 RTIncrementalTransferRequest = 0x13
) )
type RequestHeader struct { type RequestHeader struct {
@ -70,11 +70,11 @@ const (
type ResponseType uint8 type ResponseType uint8
const ( const (
RNONE ResponseType = 0 RNONE ResponseType = 0x0
ROK = 1 ROK = 0x1
RFilesystems = 2 RFilesystems = 0x10
RChunkedStream = 3 RFilesystemDiff = 0x11
RFilesystemDiff = 4 RChunkedStream = 0x20
) )
type ResponseHeader struct { type ResponseHeader struct {