aboutsummaryrefslogblamecommitdiffstats
path: root/bug/operation.go
blob: 4414f2ad00a5c097a61cc41124898264945496b3 (plain) (tree)
1
2
3
4
5
6
           



                      
                                    






                              
                                         
 

                    
                                   




                                         
package bug

type OperationType int

const (
	UNKNOWN OperationType = iota
	CREATE
	SET_TITLE
	ADD_COMMENT
)

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

type OpBase struct {
	OperationType OperationType
}

func (op OpBase) OpType() OperationType {
	return op.OperationType
}