github.com/janelia-flyem/dvid@v1.0.0/datatype/imageblk/sync.go (about) 1 package imageblk 2 3 import "github.com/janelia-flyem/dvid/dvid" 4 5 // Events for imageblk 6 const ( 7 IngestBlockEvent = "BLOCK_INGEST" 8 MutateBlockEvent = "BLOCK_MUTATE" 9 DeleteBlockEvent = "BLOCK_DELETE" 10 ) 11 12 // Block encodes a 3d block coordinate and block data. It is the unit of delta for 13 // a IngestBlockEvent. 14 type Block struct { 15 Index *dvid.IndexZYX 16 Data []byte 17 MutID uint64 18 } 19 20 // MutatedBlock encodes a 3d block coordinate and previous and updated block data. 21 // It is the unit of delta for a MutateBlockEvent. 22 type MutatedBlock struct { 23 Index *dvid.IndexZYX 24 Prev []byte 25 Data []byte 26 MutID uint64 27 }