From b8e7ddd61f612d9461b82d50f6e8e5cf538cddb4 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 3 May 2017 17:12:31 +0200 Subject: [PATCH] rpc fixup msising directions filesystemrequest --- rpc/structs.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rpc/structs.go b/rpc/structs.go index 359ffec..45d3121 100644 --- a/rpc/structs.go +++ b/rpc/structs.go @@ -19,8 +19,16 @@ type RequestHeader struct { Id [16]byte // UUID } +type Direction string + +const ( + DirectionPush Direction = "push" + DirectionPull Direction = "pull" +) + type FilesystemRequest struct { - Roots []string + Roots []string // may be nil, indicating interest in all filesystems + Direction Direction } type FilesystemVersionsRequest struct {