mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-20 17:58:04 +02:00
rpc: hex-ints for RequestType definitions
This commit is contained in:
parent
b8e7ddd61f
commit
514f9aa123
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user