aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operation.go
blob: f36e9e39395807bd4fe13f996315bc1571b8f7d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package bug

type OperationType int

const (
	UNKNOW OperationType = iota
	CREATE
	SET_TITLE
	ADD_COMMENT
)

type Operation interface {
	OpType() OperationType
	Apply(snapshot Snapshot) Snapshot
}