aboutsummaryrefslogtreecommitdiffstats
path: root/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'types.go')
-rw-r--r--types.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/types.go b/types.go
new file mode 100644
index 0000000..69d7702
--- /dev/null
+++ b/types.go
@@ -0,0 +1,23 @@
+package main
+
+import (
+ "os"
+ "time"
+)
+
+type FileEvent struct {
+ Op string `json:"op"`
+ Path string `json:"path"`
+ New string `json:"new_path,omitempty"`
+}
+
+type FileMeta struct {
+ Size int64
+ Mode os.FileMode
+ ModTime time.Time
+ Symlink string
+}
+
+type Manifest struct {
+ Files map[string]FileMeta
+}