Interface wireframe

This commit is contained in:
Christian Schwarz
2017-04-14 19:26:32 +02:00
parent 8f11874a6e
commit 123becbd22
7 changed files with 278 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
package protocol
type RequestId uint8
type Request struct {
RequestType RequestType
RequestId [16]byte // UUID
}
type FilesystemRequest struct {
Request
Roots []string
}
type InitialTransferRequest struct {
Request
Snapshot string // tank/my/db@ljlsdjflksdf
}
func (r InitialTransferRequest) Respond(snapshotReader io.Reader) {
}
type IncrementalTransferRequest struct {
Request
FromSnapshot string
ToSnapshot string
}
func (r IncrementalTransferRequest) Respond(snapshotReader io.Reader) {
}