mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-11 15:30:07 +00:00
14 lines
344 B
Go
14 lines
344 B
Go
|
/*
|
||
|
Package dboper contains a type used to represent single DB operation.
|
||
|
*/
|
||
|
package dboper
|
||
|
|
||
|
// Operation represents a single KV operation (add/del/change) performed
|
||
|
// in the DB.
|
||
|
type Operation struct {
|
||
|
// State can be Added, Changed or Deleted.
|
||
|
State string `json:"state"`
|
||
|
Key []byte `json:"key"`
|
||
|
Value []byte `json:"value,omitempty"`
|
||
|
}
|