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 {