github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/core/storage/dboper/operation.go (about) 1 /* 2 Package dboper contains a type used to represent single DB operation. 3 */ 4 package dboper 5 6 // Operation represents a single KV operation (add/del/change) performed 7 // in the DB. 8 type Operation struct { 9 // State can be Added, Changed or Deleted. 10 State string `json:"state"` 11 Key []byte `json:"key"` 12 Value []byte `json:"value,omitempty"` 13 }