summaryrefslogtreecommitdiff
path: root/internal/command/mutations.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/command/mutations.go')
-rw-r--r--internal/command/mutations.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/command/mutations.go b/internal/command/mutations.go
new file mode 100644
index 0000000..3fe1e3f
--- /dev/null
+++ b/internal/command/mutations.go
@@ -0,0 +1,21 @@
+package command
+
+import (
+ "go.neonxp.dev/objectid"
+)
+
+type Mutation struct {
+ ID objectid.ID
+ Type CommandType
+ Path []string
+ Data string
+}
+
+//go:generate stringer -type=CommandType
+type CommandType int
+
+const (
+ Create CommandType = iota
+ Merge
+ Remove
+)