aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operation.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/operation.go')
-rw-r--r--bug/operation.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/bug/operation.go b/bug/operation.go
index f36e9e39..591c7176 100644
--- a/bug/operation.go
+++ b/bug/operation.go
@@ -13,3 +13,11 @@ type Operation interface {
OpType() OperationType
Apply(snapshot Snapshot) Snapshot
}
+
+type OpBase struct {
+ OperationType OperationType `json:"op"`
+}
+
+func (op OpBase) OpType() OperationType {
+ return op.OperationType
+}